blob: 865f8a3c028e5529acb23500b8e427e3028a2213 [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.com6b9580c2011-06-23 19:34:50 +00006
epoger@google.com5189a4e2011-06-08 20:55:53 +00007 'variables': {
8 'skia_scalar%': 'float',
9 },
epoger@google.com6b9580c2011-06-23 19:34:50 +000010 # Allow override in GYP_DEFINES environment variable.
11 'skia_scalar%': '<(skia_scalar)',
12
epoger@google.comae85aea2011-05-31 13:50:51 +000013 'configurations': {
14 'Debug': {
15 'defines': [
16 'SK_DEBUG',
17 'GR_DEBUG=1',
18 ],
bungeman@google.com7a9ad1b2011-06-01 16:14:01 +000019 'msvs_settings': {
20 'VCLinkerTool': {
21 'GenerateDebugInformation': 'true',
bungeman@google.com55bfd452011-06-03 15:48:17 +000022 },
23 'VCCLCompilerTool': {
24 #0 Disabled (/Od)
25 #1 Minimize Size (/O1)
26 #2 Maximize Speed (/O2)
27 #3 Full Optimization (/Ox)
28 'Optimization': '0',
29 },
bungeman@google.com7a9ad1b2011-06-01 16:14:01 +000030 },
epoger@google.comae85aea2011-05-31 13:50:51 +000031 },
32 'Release': {
33 'defines': [
34 'SK_RELEASE',
35 'GR_RELEASE=1',
36 ],
37 },
38 },
39 'conditions': [
epoger@google.com5189a4e2011-06-08 20:55:53 +000040 [ 'skia_scalar == "float"',
41 {
42 'defines': [
43 'SK_SCALAR_IS_FLOAT',
44 ],
45 }, { # else, skia_scalar != "float"
46 'defines': [
47 'SK_SCALAR_IS_FIXED',
48 ],
49 }
50 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000051 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
52 'include_dirs' : [
53 '/usr/include/freetype2',
54 ],
55 }],
56 [ 'OS == "mac"', {
57 'defines': [
58 'SK_BUILD_FOR_MAC',
59 ],
60 }],
61 [ 'OS == "win"', {
62 'defines': [
63 'SK_BUILD_FOR_WIN32',
64 'SK_IGNORE_STDINT_DOT_H',
65 ],
66 }],
67 [ 'OS == "linux"', {
68 'defines': [
69 'SK_SAMPLES_FOR_X',
70 'SK_BUILD_FOR_UNIX',
71 ],
72 }],
73 ],
74 'direct_dependent_settings': {
75 'conditions': [
76 [ 'OS == "mac"', {
77 'defines': [
78 'SK_BUILD_FOR_MAC',
79 ],
80 }],
81 [ 'OS == "win"', {
82 'defines': [
83 'SK_BUILD_FOR_WIN32',
84 ],
85 }],
86 ],
87 },
88 },
89}
90
91# Local Variables:
92# tab-width:2
93# indent-tabs-mode:nil
94# End:
95# vim: set expandtab tabstop=2 shiftwidth=2: