blob: add8a62eacd6585b877c1093485e68bb755b9a3f [file] [log] [blame]
seanpaul@google.com1134f982011-09-15 14:24:33 +00001# conditions used in both common.gypi and skia.gyp in chromium
2#
3{
4 'conditions' : [
5
6 ['skia_os == "win"',
7 {
8 'defines': [
9 'SK_BUILD_FOR_WIN32',
10 'SK_IGNORE_STDINT_DOT_H',
11 ],
12 'msvs_cygwin_shell': 0,
13 'msvs_settings': {
14 'VCCLCompilerTool': {
15 'WarningLevel': '1',
16 'WarnAsError': 'false',
17 'DebugInformationFormat': '3',
seanpaul@google.com8f78fec2011-09-16 15:47:33 +000018 'AdditionalOptions': [ '/MP' ],
seanpaul@google.com1134f982011-09-15 14:24:33 +000019 },
20 'VCLinkerTool': {
21 'AdditionalDependencies': [
22 'OpenGL32.lib',
23 'usp10.lib',
24 ],
25 },
26 },
27 'configurations': {
28 'Debug': {
29 'msvs_settings': {
30 'VCCLCompilerTool': {
31 'DebugInformationFormat': '1', # debugOldStyleInfo (/Z7)
32 'Optimization': '0', # optimizeDisabled (/Od)
33 'PreprocessorDefinitions': ['_DEBUG'],
34 'RuntimeLibrary': '3', # rtMultiThreadedDebugDLL (/MDd)
35 },
36 'VCLinkerTool': {
37 'GenerateDebugInformation': 'true',
38 },
39 },
40 },
41 'Release': {
42 'msvs_settings': {
43 'VCCLCompilerTool': {
44 'DebugInformationFormat': '0', # debugDisabled
45 'Optimization': '2', # optimizeMaxSpeed (/O2)
46 'PreprocessorDefinitions': ['NDEBUG'],
47 'RuntimeLibrary': '2', # rtMultiThreadedDLL (/MD)
48 },
49 'VCLinkerTool': {
50 'GenerateDebugInformation': 'false',
51 },
52 },
53 },
54 },
55 },
56 ],
57
58 ['skia_os in ["linux", "freebsd", "openbsd", "solaris"]',
59 {
60 'defines': [
61 'SK_SAMPLES_FOR_X',
62 'SK_BUILD_FOR_UNIX',
63 ],
64 'configurations': {
65 'Debug': {
66 'cflags': ['-g']
67 },
68 'Release': {
69 'cflags': ['-O2']
70 },
71 },
72 'cflags': [ '-Wall', '-Wextra', '-Wno-unused' ],
73 'include_dirs' : [
74 '/usr/include/freetype2',
75 ],
76 },
77 ],
78
79 ['skia_os == "mac"',
80 {
81 'defines': [
82 'SK_BUILD_FOR_MAC',
83 ],
84 'configurations': {
85 'Debug': {
86 'xcode_settings': {
87 'GCC_OPTIMIZATION_LEVEL': '0',
88 },
89 },
90 },
91 'xcode_settings': {
92 'SYMROOT': '<(DEPTH)/xcodebuild',
93 },
94 },
95 ],
96
97 ['skia_os == "ios"',
98 {
99 'defines': [
100 'SK_BUILD_FOR_IOS',
101 ],
102 'configurations': {
103 'Debug': {
104 'xcode_settings': {
105 'GCC_OPTIMIZATION_LEVEL': '0',
106 },
107 },
108 },
109 'xcode_settings': {
110 'SYMROOT': '<(DEPTH)/xcodebuild',
111 },
112 },
113 ],
114
115 ], # end 'conditions'
116}
117
118# Local Variables:
119# tab-width:2
120# indent-tabs-mode:nil
121# End:
122# vim: set expandtab tabstop=2 shiftwidth=2: