-
Notifications
You must be signed in to change notification settings - Fork 7
/
common.gypi-appveyor
120 lines (119 loc) · 4.63 KB
/
common.gypi-appveyor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"target_defaults": {
"default_configuration": "<(configuration)",
"msvs_configuration_platform": "<(platform)",
"msbuild_toolset":"v140",
"msvs_disabled_warnings": [
4910, # we should fix this, but do not know how yet: (__declspec(dllexport)' and 'extern' are incompatible on an explicit instantiation)
4068, # (unknown pragma)
4244, # should consider re-enabling now after https://github.com/mapnik/mapnik/issues/2907 (conversion from 'type1' to 'type2', possible loss of data)
4005, # 'identifier' : macro redefinition
4506, # no definition for inline function 'function'
4661 # no suitable definition provided for explicit template instantiation request
],
"msvs_settings": {
"VCCLCompilerTool": {
"ObjectFile": "$(IntDir)/%(RelativeDir)/",
"ExceptionHandling": 1,
"RuntimeTypeInfo": "true"
}
},
"xcode_settings": {
"CLANG_CXX_LIBRARY": "libc++",
"CLANG_CXX_LANGUAGE_STANDARD":"c++11",
"GCC_VERSION": "com.apple.compilers.llvm.clang.1_0",
"MACOSX_DEPLOYMENT_TARGET":"10.9",
"WARNING_CFLAGS": [
"-Wall",
"-Wextra",
"-pedantic",
"-Wno-c++11-long-long",
"-Wno-unsequenced",
"-Wno-sign-compare",
"-Wno-unused-function",
"-Wno-redeclared-class-member",
"-Wno-c99-extensions",
"-Wno-c++11-extra-semi",
"-Wno-variadic-macros",
"-Wno-c++11-extensions",
"-Wno-unused-const-variable",
"-Wno-unknown-pragmas",
"-Wno-c++11-narrowing" # works around boost gil bug
]
},
"cflags_cc": [
"-std=c++11",
"-fPIC", # so that we can link agg into libmapnik.so
"-Wno-c++11-narrowing", # works around boost gil bug
"-Wno-unsequenced",
"-Wno-unknown-pragmas",
"-Wno-redeclared-class-member"
],
"configurations": {
"Debug": {
"defines": [ "DEBUG","_DEBUG" ],
"msvs_settings": {
"VCCLCompilerTool": {
"RuntimeLibrary": "3",
"Optimization": 0,
"FavorSizeOrSpeed": 1, #1:/Ot, favour speed, 2:/Os favour size
"MinimalRebuild": "false",
"OmitFramePointers": "true",
"BasicRuntimeChecks": 3,
"AdditionalOptions": [
"/MP", # compile across multiple CPUs
"/bigobj", #compiling: x86 fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj
],
}
},
"xcode_settings": {
"GCC_OPTIMIZATION_LEVEL": "0",
"GCC_GENERATE_DEBUGGING_SYMBOLS": "YES"
}
},
"Release": {
"defines": [ "NDEBUG" ],
"msvs_settings": {
"VCCLCompilerTool": {
"RuntimeLibrary": "2", #0:/MT, 2:/MD,
"Optimization": 0, # 0:/Od disable, 1:/O1 min size, 2:/O2 max speed, 3:/Ox full optimization
#"FavorSizeOrSpeed": 1, #1:/Ot favour speed, 2:/Os favour size
#"MinimalRebuild": "false",
"InlineFunctionExpansion": 0, #0:/Ob0: disable, 1:/Ob1 inline only marked funtions, 2:/Ob2 inline anything eligible
#"WholeProgramOptimization": "true", # /GL, whole program optimization, needed for LTCG
"OmitFramePointers": "true",
#"EnableFunctionLevelLinking": "true",
"EnableIntrinsicFunctions": "true",
"DebugInformationFormat": "0", #0:disable 1:/Z7 3:/Zi 4:/ZI , see GenerateDebugInformation below, https://msdn.microsoft.com/en-us/library/958x11bc.aspx
"MultiProcessorCompilation": "true",
"AdditionalOptions": [
"/bigobj", #compiling: x86 fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj
#"/Zm200", #prevent: Fatal Error C1060 compiler is out of heap space
],
},
"VCLibrarianTool": {
"AdditionalOptions": [
#"/LTCG",
],
},
"VCLinkerTool": {
#"LinkTimeCodeGeneration": 1, # link-time code generation
#"OptimizeReferences": 2, # /OPT:REF
#"EnableCOMDATFolding": 2, # /OPT:ICF
"LinkIncremental": 1, #1:/INCREMENTAL:NO, 2:/INCREMENTAL force incremental linking
"GenerateDebugInformation": "false",
"AdditionalOptions": [
#"/NODEFAULTLIB:libcmt.lib"
],
}
},
"xcode_settings": {
"GCC_OPTIMIZATION_LEVEL": "3",
"GCC_GENERATE_DEBUGGING_SYMBOLS": "NO",
"DEAD_CODE_STRIPPING": "YES",
"GCC_INLINES_ARE_PRIVATE_EXTERN": "YES"
}
}
}
}
}