Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Remove some resources in pak file under gyp flag #246

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions build/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,12 @@
# Enable FTP support by default.
'disable_ftp_support%': 0,

# Enable web audio hrtf by default.
'disable_webaudio_hrtf%': 0,

# Include all resources by default.
'use_minimum_resources%': 0,

# Use native android functions in place of ICU. Not supported by most
# components.
'use_icu_alternatives_on_android%': 0,
Expand Down Expand Up @@ -1166,6 +1172,8 @@
'enable_captive_portal_detection%': '<(enable_captive_portal_detection)',
'disable_file_support%': '<(disable_file_support)',
'disable_ftp_support%': '<(disable_ftp_support)',
'disable_webaudio_hrtf%': '<(disable_webaudio_hrtf)',
'use_minimum_resources%': '<(use_minimum_resources)',
'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)',
'enable_task_manager%': '<(enable_task_manager)',
'sas_dll_path%': '<(sas_dll_path)',
Expand Down Expand Up @@ -2112,6 +2120,12 @@
['use_concatenated_impulse_responses==1', {
'grit_defines': ['-D', 'use_concatenated_impulse_responses'],
}],
['disable_webaudio_hrtf==1', {
'grit_defines': ['-D', 'disable_webaudio_hrtf'],
}],
['use_minimum_resources==1', {
'grit_defines': ['-D', 'use_minimum_resources'],
}],
['enable_webrtc==1', {
'grit_defines': ['-D', 'enable_webrtc'],
}],
Expand Down
2 changes: 2 additions & 0 deletions content/app/resources/content_resources.grd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<release seq="1">
<structures fallback_to_low_resolution="true">
<structure type="chrome_scaled_image" name="IDR_BROKENIMAGE" file="broken_image.png" />
<if expr="not pp_ifdef('use_minimum_resources')">
<structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_PAUSE_BUTTON" file="mediaplayer_pause.png" />
<structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_PAUSE_BUTTON_HOVER" file="mediaplayer_pause_hover.png" />
<structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_PAUSE_BUTTON_DOWN" file="mediaplayer_pause_down.png" />
Expand Down Expand Up @@ -49,6 +50,7 @@
<structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_CAST_BUTTON_ON" file="mediaplayer_cast_on.png" />
<structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_OVERLAY_CAST_BUTTON_OFF" file="mediaplayer_overlay_cast_off.png" />
<structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_OVERLAY_PLAY_BUTTON" file="mediaplayer_overlay_play.png" />
</if>
<if expr="is_macosx">
<structure type="chrome_scaled_image" name="IDR_ALIAS_CURSOR" file="alias_cursor.png" />
<structure type="chrome_scaled_image" name="IDR_CELL_CURSOR" file="cell_cursor.png" />
Expand Down
2 changes: 2 additions & 0 deletions ui/resources/ui_resources.grd
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</outputs>
<release seq="1">
<structures fallback_to_low_resolution="true">
<if expr="not pp_ifdef('use_minimum_resources')">
<!-- KEEP THESE IN ALPHABETICAL ORDER! DO NOT ADD TO RANDOM PLACES JUST
BECAUSE YOUR RESOURCES ARE FUNCTIONALLY RELATED OR FALL UNDER THE
SAME CONDITIONALS. -->
Expand Down Expand Up @@ -593,6 +594,7 @@
<structure type="chrome_scaled_image" name="IDR_WINDOW_BUBBLE_SHADOW_SPIKE_SMALL_RIGHT" file="common/window_bubble_shadow_spike_small_right.png" />
<structure type="chrome_scaled_image" name="IDR_WINDOW_BUBBLE_SHADOW_SPIKE_SMALL_TOP" file="common/window_bubble_shadow_spike_small_top.png" />
</if>
</if>
</structures>
</release>
</grit>