Vitaly Buka | 4615e0d | 2015-10-14 15:35:12 -0700 | [diff] [blame] | 1 | # Copyright 2015 The Weave Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 4 | { |
| 5 | 'target_defaults': { |
| 6 | 'configurations': { |
| 7 | 'Release': { |
| 8 | 'defines': [ |
| 9 | 'NDEBUG', |
| 10 | ], |
| 11 | 'cflags': [ |
| 12 | '-Os', |
| 13 | ], |
| 14 | }, |
| 15 | 'Debug': { |
| 16 | 'defines': [ |
| 17 | '_DEBUG', |
| 18 | ], |
| 19 | 'cflags': [ |
| 20 | '-Og', |
Vitaly Buka | 156bb9a | 2015-10-16 01:46:54 -0700 | [diff] [blame] | 21 | '-g3', |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 22 | ], |
| 23 | }, |
| 24 | }, |
| 25 | 'include_dirs': [ |
| 26 | '.', |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 27 | 'include', |
Vitaly Buka | 9e5b683 | 2015-10-14 15:57:14 -0700 | [diff] [blame] | 28 | 'third_party/chromium', |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 29 | 'third_party/include', |
| 30 | 'third_party/modp_b64/modp_b64', |
| 31 | ], |
| 32 | 'cflags!': ['-fPIE'], |
| 33 | 'cflags': [ |
| 34 | '-fPIC', |
| 35 | '-fvisibility=hidden', |
Vitaly Buka | 8cca9b1 | 2015-09-29 14:49:44 -0700 | [diff] [blame] | 36 | '-std=c++11', |
| 37 | '-Wall', |
| 38 | '-Werror', |
| 39 | '-Wextra', |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 40 | '-Wl,--exclude-libs,ALL', |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 41 | '-Wno-char-subscripts', |
Vitaly Buka | 8cca9b1 | 2015-09-29 14:49:44 -0700 | [diff] [blame] | 42 | '-Wno-format-nonliteral', |
| 43 | '-Wno-missing-field-initializers', |
| 44 | '-Wno-unused-local-typedefs', |
| 45 | '-Wno-unused-parameter', |
| 46 | '-Wpacked', |
| 47 | '-Wpointer-arith', |
| 48 | '-Wwrite-strings', |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 49 | ], |
ilewis | b70fd47 | 2015-10-29 13:24:11 -0700 | [diff] [blame] | 50 | 'library_dirs': ['third_party/lib'] |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 51 | }, |
| 52 | } |