blob: 49f7ff9249a15caa1d496dd8bac3268abe86697a [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': [
20 '-Og',
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': [
34 '-fPIC',
35 '-fvisibility=hidden',
Vitaly Buka8cca9b12015-09-29 14:49:44 -070036 '-std=c++11',
37 '-Wall',
38 '-Werror',
39 '-Wextra',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070040 '-Wl,--exclude-libs,ALL',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070041 '-Wno-char-subscripts',
Vitaly Buka8cca9b12015-09-29 14:49:44 -070042 '-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 Bukadd3b58a2015-09-02 13:29:58 -070049 ],
ilewisb70fd472015-10-29 13:24:11 -070050 'library_dirs': ['third_party/lib']
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070051 },
52}