OLD | NEW |
1 # ============================================================================= | 1 # ============================================================================= |
2 # BUILD FLAGS | 2 # BUILD FLAGS |
3 # ============================================================================= | 3 # ============================================================================= |
4 # | 4 # |
5 # This block lists input arguments to the build, along with their default | 5 # This block lists input arguments to the build, along with their default |
6 # values. GN requires listing them explicitly so it can validate input and have | 6 # values. GN requires listing them explicitly so it can validate input and have |
7 # a central place to manage the build flags. | 7 # a central place to manage the build flags. |
8 # | 8 # |
9 # If a value is specified on the command line, it will overwrite the defaults | 9 # If a value is specified on the command line, it will overwrite the defaults |
10 # given here, otherwise the default will be injected into the root scope. | 10 # given here, otherwise the default will be injected into the root scope. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 } | 168 } |
169 | 169 |
170 if (is_debug) { | 170 if (is_debug) { |
171 native_compiler_configs += "//build/config:debug" | 171 native_compiler_configs += "//build/config:debug" |
172 } else { | 172 } else { |
173 native_compiler_configs += "//build/config:release" | 173 native_compiler_configs += "//build/config:release" |
174 } | 174 } |
175 | 175 |
176 set_defaults("executable") { | 176 set_defaults("executable") { |
177 configs = native_compiler_configs | 177 configs = native_compiler_configs |
| 178 if (is_mac) { |
| 179 configs += "//build/config/mac:mac_dynamic_flags" |
| 180 } |
178 } | 181 } |
179 | 182 |
180 set_defaults("static_library") { | 183 set_defaults("static_library") { |
181 configs = native_compiler_configs | 184 configs = native_compiler_configs |
182 } | 185 } |
183 | 186 |
184 set_defaults("shared_library") { | 187 set_defaults("shared_library") { |
185 configs = native_compiler_configs | 188 configs = native_compiler_configs |
| 189 if (is_mac) { |
| 190 configs += "//build/config/mac:mac_dynamic_flags" |
| 191 } |
186 } | 192 } |
187 | 193 |
188 # ============================================================================== | 194 # ============================================================================== |
189 # TOOLCHAIN SETUP | 195 # TOOLCHAIN SETUP |
190 # ============================================================================== | 196 # ============================================================================== |
191 | 197 |
192 if (is_win) { | 198 if (is_win) { |
193 set_default_toolchain("//build/config/win:32") | 199 set_default_toolchain("//build/config/win:32") |
194 } else if (is_mac) { | 200 } else if (is_mac) { |
195 set_default_toolchain("//build/config/mac:clang") | 201 set_default_toolchain("//build/config/mac:clang") |
196 } | 202 } |
OLD | NEW |