blob: 2e1fa10a8b2ec18b41f41df2288f0b583f406877 [file] [log] [blame]
Vitaly Buka4615e0d2015-10-14 15:35:12 -07001# 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 Bukadd3b58a2015-09-02 13:29:58 -07004{
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': [
Vitaly Buka52d006a2015-11-21 17:14:51 -080020 '-O0 ',
Vitaly Buka156bb9a2015-10-16 01:46:54 -070021 '-g3',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070022 ],
23 },
24 },
25 'include_dirs': [
26 '.',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070027 'include',
Vitaly Buka9e5b6832015-10-14 15:57:14 -070028 'third_party/chromium',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070029 'third_party/include',
30 'third_party/modp_b64/modp_b64',
31 ],
32 'cflags!': ['-fPIE'],
33 'cflags': [
Vitaly Bukab0693072015-11-23 18:07:36 -080034 '-fno-exceptions',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070035 '-fPIC',
36 '-fvisibility=hidden',
Vitaly Buka8cca9b12015-09-29 14:49:44 -070037 '-std=c++11',
38 '-Wall',
39 '-Werror',
40 '-Wextra',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070041 '-Wl,--exclude-libs,ALL',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070042 '-Wno-char-subscripts',
Vitaly Buka8cca9b12015-09-29 14:49:44 -070043 '-Wno-format-nonliteral',
44 '-Wno-missing-field-initializers',
45 '-Wno-unused-local-typedefs',
46 '-Wno-unused-parameter',
47 '-Wpacked',
48 '-Wpointer-arith',
49 '-Wwrite-strings',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070050 ],
Vitaly Buka9e9aca92015-11-23 23:20:12 -080051 'libraries': [
52 # 'library_dirs' does not work as expected with make files
53 '-Lthird_party/lib',
54 ],
ilewisb70fd472015-10-29 13:24:11 -070055 'library_dirs': ['third_party/lib']
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070056 },
57}