blob: bc08e18af593954ad6718b2151347e85c36a1306 [file] [log] [blame]
epoger@google.comae85aea2011-05-31 13:50:51 +00001{
2 'target_defaults': {
epoger@google.com73f83992011-06-09 18:51:41 +00003 'defines': [
4 'SK_CAN_USE_FLOAT',
5 ],
epoger@google.com5189a4e2011-06-08 20:55:53 +00006 'variables': {
7 'skia_scalar%': 'float',
8 },
epoger@google.comae85aea2011-05-31 13:50:51 +00009 'configurations': {
10 'Debug': {
11 'defines': [
12 'SK_DEBUG',
13 'GR_DEBUG=1',
14 ],
bungeman@google.com7a9ad1b2011-06-01 16:14:01 +000015 'msvs_settings': {
16 'VCLinkerTool': {
17 'GenerateDebugInformation': 'true',
bungeman@google.com55bfd452011-06-03 15:48:17 +000018 },
19 'VCCLCompilerTool': {
20 #0 Disabled (/Od)
21 #1 Minimize Size (/O1)
22 #2 Maximize Speed (/O2)
23 #3 Full Optimization (/Ox)
24 'Optimization': '0',
25 },
bungeman@google.com7a9ad1b2011-06-01 16:14:01 +000026 },
epoger@google.comae85aea2011-05-31 13:50:51 +000027 },
28 'Release': {
29 'defines': [
30 'SK_RELEASE',
31 'GR_RELEASE=1',
32 ],
33 },
34 },
35 'conditions': [
epoger@google.com5189a4e2011-06-08 20:55:53 +000036 [ 'skia_scalar == "float"',
37 {
38 'defines': [
39 'SK_SCALAR_IS_FLOAT',
40 ],
41 }, { # else, skia_scalar != "float"
42 'defines': [
43 'SK_SCALAR_IS_FIXED',
44 ],
45 }
46 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000047 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
48 'include_dirs' : [
49 '/usr/include/freetype2',
50 ],
51 }],
52 [ 'OS == "mac"', {
53 'defines': [
54 'SK_BUILD_FOR_MAC',
55 ],
56 }],
57 [ 'OS == "win"', {
58 'defines': [
59 'SK_BUILD_FOR_WIN32',
60 'SK_IGNORE_STDINT_DOT_H',
61 ],
62 }],
63 [ 'OS == "linux"', {
64 'defines': [
65 'SK_SAMPLES_FOR_X',
66 'SK_BUILD_FOR_UNIX',
67 ],
68 }],
69 ],
70 'direct_dependent_settings': {
71 'conditions': [
72 [ 'OS == "mac"', {
73 'defines': [
74 'SK_BUILD_FOR_MAC',
75 ],
76 }],
77 [ 'OS == "win"', {
78 'defines': [
79 'SK_BUILD_FOR_WIN32',
80 ],
81 }],
82 ],
83 },
84 },
85}
86
87# Local Variables:
88# tab-width:2
89# indent-tabs-mode:nil
90# End:
91# vim: set expandtab tabstop=2 shiftwidth=2: