Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Side by Side Diff: gyp/common_variables.gypi

Issue 153093003: Gyp file changes for the android framework. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/common_conditions.gypi ('k') | gyp/core.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 The Android Open Source Project 1 # Copyright 2012 The Android Open Source Project
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 { 6 {
7 # Get ready for the ugly... 7 # Get ready for the ugly...
8 # 8 #
9 # - We have to nest our variables dictionaries multiple levels deep, so that 9 # - We have to nest our variables dictionaries multiple levels deep, so that
10 # this and other gyp files can rely on previously-set variable values in 10 # this and other gyp files can rely on previously-set variable values in
(...skipping 27 matching lines...) Expand all
38 'variables': { # level 1 38 'variables': { # level 1
39 'variables': { # level 2 39 'variables': { # level 2
40 40
41 # Variables needed by conditions list within the level-2 variables dict. 41 # Variables needed by conditions list within the level-2 variables dict.
42 'variables': { # level 3 42 'variables': { # level 3
43 # We use 'skia_os' instead of 'OS' throughout our gyp files, to allow 43 # We use 'skia_os' instead of 'OS' throughout our gyp files, to allow
44 # for cross-compilation (e.g. building for either MacOS or iOS on Mac). 44 # for cross-compilation (e.g. building for either MacOS or iOS on Mac).
45 # We set it automatically based on 'OS' (the host OS), but allow the 45 # We set it automatically based on 'OS' (the host OS), but allow the
46 # user to override it via GYP_DEFINES if they like. 46 # user to override it via GYP_DEFINES if they like.
47 'skia_os%': '<(OS)', 47 'skia_os%': '<(OS)',
48
49 'skia_android_framework%': 0,
50 }, 48 },
51 49
52 # Re-define all variables defined within the level-3 'variables' dict, 50 # Re-define all variables defined within the level-3 'variables' dict,
53 # so that siblings of the level-2 'variables' dict can see them. 51 # so that siblings of the level-2 'variables' dict can see them.
54 # (skia_os will depend on skia_android_framework.) 52 'skia_os%': '<(skia_os)',
55 'skia_android_framework%': '<(skia_android_framework)',
56 53
57 'conditions': [ 54 'conditions': [
58 [ 'skia_android_framework == 1', {
59 'skia_os%': 'android',
60 }, {
61 'skia_os%': '<(skia_os)',
62 }],
63 [ 'skia_os == "win"', { 55 [ 'skia_os == "win"', {
64 'os_posix%': 0, 56 'os_posix%': 0,
65 }, { 57 }, {
66 'os_posix%': 1, 58 'os_posix%': 1,
67 }], 59 }],
68 [ 'skia_os in ["linux", "win"]', { 60 [ 'skia_os in ["linux", "win"]', {
69 'skia_poppler_enabled%': 1, 61 'skia_poppler_enabled%': 1,
70 }, { 62 }, {
71 'skia_poppler_enabled%': 0, 63 'skia_poppler_enabled%': 0,
72 }], 64 }],
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 'skia_distancefield_fonts%': 0, 102 'skia_distancefield_fonts%': 0,
111 103
112 # These variables determine the default optimization level for different 104 # These variables determine the default optimization level for different
113 # compilers. 105 # compilers.
114 'skia_default_vs_optimization_level': 3, # full (/Ox) 106 'skia_default_vs_optimization_level': 3, # full (/Ox)
115 'skia_default_gcc_optimization_level': 3, # -O3 107 'skia_default_gcc_optimization_level': 3, # -O3
116 }, 108 },
117 109
118 'conditions': [ 110 'conditions': [
119 [ 'skia_os == "win" and skia_arch_width == 32 or ' 111 [ 'skia_os == "win" and skia_arch_width == 32 or '
120 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"] ' 112 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"] or '
121 'and skia_android_framework == 0 or '
122 'skia_os == "mac" and skia_arch_width == 32', { 113 'skia_os == "mac" and skia_arch_width == 32', {
123 'skia_warnings_as_errors%': 1, 114 'skia_warnings_as_errors%': 1,
124 }, { 115 }, {
125 'skia_warnings_as_errors%': 0, 116 'skia_warnings_as_errors%': 0,
126 }], 117 }],
127 118
128 # This variable allows the user to customize the optimization level used 119 # This variable allows the user to customize the optimization level used
129 # by the compiler. The user should be aware that this has different 120 # by the compiler. The user should be aware that this has different
130 # meanings for different compilers and should exercise caution when 121 # meanings for different compilers and should exercise caution when
131 # overriding it. 122 # overriding it.
(...skipping 15 matching lines...) Expand all
147 # so that siblings of the level-1 'variables' dict can see them. 138 # so that siblings of the level-1 'variables' dict can see them.
148 'arm_version%': '<(arm_version)', 139 'arm_version%': '<(arm_version)',
149 'arm_neon%': '<(arm_neon)', 140 'arm_neon%': '<(arm_neon)',
150 'arm_neon_optional%': 0, 141 'arm_neon_optional%': 0,
151 'skia_os%': '<(skia_os)', 142 'skia_os%': '<(skia_os)',
152 'os_posix%': '<(os_posix)', 143 'os_posix%': '<(os_posix)',
153 'skia_sanitizer%': '<(skia_sanitizer)', 144 'skia_sanitizer%': '<(skia_sanitizer)',
154 'skia_scalar%': '<(skia_scalar)', 145 'skia_scalar%': '<(skia_scalar)',
155 'skia_mesa%': '<(skia_mesa)', 146 'skia_mesa%': '<(skia_mesa)',
156 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', 147 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)',
157 'skia_android_framework%': '<(skia_android_framework)',
158 'skia_android_path_rendering%': '<(skia_android_path_rendering)', 148 'skia_android_path_rendering%': '<(skia_android_path_rendering)',
159 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)', 149 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)',
160 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)', 150 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)',
161 'skia_angle%': '<(skia_angle)', 151 'skia_angle%': '<(skia_angle)',
162 'skia_poppler_enabled%': '<(skia_poppler_enabled)', 152 'skia_poppler_enabled%': '<(skia_poppler_enabled)',
163 'skia_arch_width%': '<(skia_arch_width)', 153 'skia_arch_width%': '<(skia_arch_width)',
164 'skia_arch_type%': '<(skia_arch_type)', 154 'skia_arch_type%': '<(skia_arch_type)',
165 'skia_chrome_utils%': '<(skia_chrome_utils)', 155 'skia_chrome_utils%': '<(skia_chrome_utils)',
166 'skia_directwrite%': '<(skia_directwrite)', 156 'skia_directwrite%': '<(skia_directwrite)',
167 'skia_gpu%': '<(skia_gpu)', 157 'skia_gpu%': '<(skia_gpu)',
168 'skia_win_exceptions%': 0, 158 'skia_win_exceptions%': 0,
169 'skia_osx_deployment_target%': '<(skia_osx_deployment_target)', 159 'skia_osx_deployment_target%': '<(skia_osx_deployment_target)',
170 'skia_profile_enabled%': '<(skia_profile_enabled)', 160 'skia_profile_enabled%': '<(skia_profile_enabled)',
171 'skia_shared_lib%': '<(skia_shared_lib)', 161 'skia_shared_lib%': '<(skia_shared_lib)',
172 'skia_opencl%': '<(skia_opencl)', 162 'skia_opencl%': '<(skia_opencl)',
173 'skia_distancefield_fonts%': '<(skia_distancefield_fonts)', 163 'skia_distancefield_fonts%': '<(skia_distancefield_fonts)',
174 'skia_static_initializers%': '<(skia_static_initializers)', 164 'skia_static_initializers%': '<(skia_static_initializers)',
175 'ios_sdk_version%': '6.0', 165 'ios_sdk_version%': '6.0',
176 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', 166 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)',
177 'skia_run_pdfviewer_in_gm%': 0, 167 'skia_run_pdfviewer_in_gm%': 0,
178 168
179 # These are referenced by our .gypi files that list files (e.g. core.gypi) 169 # These are referenced by our .gypi files that list files (e.g. core.gypi)
180 # 170 #
181 'skia_src_path%': '../src', 171 'skia_src_path%': '../src',
182 'skia_include_path%': '../include', 172 'skia_include_path%': '../include',
183 }, 173 },
184 } 174 }
OLDNEW
« no previous file with comments | « gyp/common_conditions.gypi ('k') | gyp/core.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698