Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: adblockplus.gyp

Issue 10945039: Switch to gyp (Closed)
Left Patch Set: Created June 20, 2013, 3:14 p.m.
Right Patch Set: Final version Created June 21, 2013, 2:16 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « AdblockPlusPlugin.vcxproj ('k') | build_release.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 { 1 {
2 'includes': ['defaults.gypi'],
3
2 'variables': { 4 'variables': {
3 'build_type%': 'devbuild', 5 'build_type%': 'devbuild',
4 'build_version%': '', 6 'build_version%': '',
5 'shared_files': [ 7 'shared_files': [
6 'src/shared/AutoHandle.cpp', 8 'src/shared/AutoHandle.cpp',
7 'src/shared/Communication.cpp', 9 'src/shared/Communication.cpp',
8 'src/shared/Dictionary.cpp', 10 'src/shared/Dictionary.cpp',
9 'src/shared/Utils.cpp', 11 'src/shared/Utils.cpp',
10 ] 12 ]
11 }, 13 },
12 14
13 'target_defaults': { 15 'target_defaults': {
14 'configurations': {
15 'Debug': {
16 'defines': [ '_DEBUG' ],
17 'msvs_settings': {
18 'VCCLCompilerTool': {
19 'Optimization': '0',
20
21 'conditions': [
22 ['component=="shared_library"', {
23 'RuntimeLibrary': '3', # /MDd
24 }, {
25 'RuntimeLibrary': '1', # /MTd
26 }]
27 ],
28 },
29 },
30 },
31 'Release': {
32 'defines': [ 'NDEBUG' ],
33 'msvs_settings': {
34 'VCCLCompilerTool': {
35 'Optimization': '2',
36 'InlineFunctionExpansion': '2',
37 'EnableIntrinsicFunctions': 'true',
38 'FavorSizeOrSpeed': '0',
39 'StringPooling': 'true',
40 'WholeProgramOptimization': 'true',
41 'EnableFunctionLevelLinking': 'true',
42
43 'conditions': [
44 ['component=="shared_library"', {
45 'RuntimeLibrary': '2', # /MD
46 }, {
47 'RuntimeLibrary': '0', # /MT
48 }]
49 ],
50 },
51 'VCLinkerTool': {
52 'EnableCOMDATFolding': 2, # true
53 'OptimizeReferences': 2, # true
54 },
55 },
56 },
57 },
58 'defines': ['WIN32', '_WINDOWS'],
59 'msvs_configuration_attributes': {
60 'CharacterSet': '1', # Unicode
61 },
62 'msvs_settings': {
63 'VCCLCompilerTool': {
64 'WarningLevel': 3, # Level3
65 },
66 'VCLinkerTool': {
67 'SubSystem': '2', # Windows
68 'GenerateDebugInformation': 'true',
69 },
70 },
71 'conditions': [ 16 'conditions': [
72 [ 17 [
73 'build_type=="devbuild"', 18 'build_type=="devbuild"',
74 { 19 {
75 'defines': ['ADBLOCK_PLUS_TEST_MODE', 'ADBLOCKPLUS_TEST_MODE'], 20 'defines': ['ADBLOCK_PLUS_TEST_MODE', 'ADBLOCKPLUS_TEST_MODE'],
76 }, 21 },
77 { 22 {
78 'defines': ['ADBLOCK_PLUS_PRODUCTION_MODE', 'ADBLOCKPLUS_PRODUCTION_MO DE'], 23 'defines': ['ADBLOCK_PLUS_PRODUCTION_MODE', 'ADBLOCKPLUS_PRODUCTION_MO DE'],
79 }, 24 },
80 ], 25 ],
81 [ 26 [
82 'build_version!=""', 27 'build_version!=""',
83 { 28 {
84 'defines': [ 29 'defines': [
85 'IEPLUGIN_VERSION=L"<(version)"', 30 'IEPLUGIN_VERSION=L"<(build_version)"',
86 'VERSIONINFO_VERSION=<!(python -c "import sys; print sys.argv[1].rep lace(\'.\', \',\')" <(version).0)', 31 'VERSIONINFO_VERSION=<!(python -c "import sys; print sys.argv[1].rep lace(\'.\', \',\')" <(build_version).0)',
87 'VERSIONINFO_VERSION_STR=\\"<(version).0\\"', 32 'VERSIONINFO_VERSION_STR=\\"<(build_version).0\\"',
88 ], 33 ],
89 } 34 }
90 ], 35 ],
91 ], 36 ],
92 }, 37 },
93 38
94 'targets': [{ 39 'targets': [{
95 'target_name': 'AdblockPlusEngine', 40 'target_name': 'AdblockPlusEngine',
96 'type': 'executable', 41 'type': 'executable',
97 'dependencies': [ 42 'dependencies': [
(...skipping 12 matching lines...) Expand all
110 '-luser32', 55 '-luser32',
111 '-lshell32', 56 '-lshell32',
112 '-lshlwapi', 57 '-lshlwapi',
113 ], 58 ],
114 'msbuild_toolset': 'v110_xp', 59 'msbuild_toolset': 'v110_xp',
115 'msvs_settings': { 60 'msvs_settings': {
116 'VCLinkerTool': { 61 'VCLinkerTool': {
117 'DelayLoadDLLs': ['Shell32.dll'], 62 'DelayLoadDLLs': ['Shell32.dll'],
118 }, 63 },
119 }, 64 },
120 }, { 65 },
66
67 {
121 'target_name': 'AdblockPlus', 68 'target_name': 'AdblockPlus',
122 'type': 'shared_library', 69 'type': 'shared_library',
123 'sources': [ 70 'sources': [
124 'src/plugin/AdblockPlusClient.cpp', 71 'src/plugin/AdblockPlusClient.cpp',
125 'src/plugin/AdblockPlusDomTraverser.cpp', 72 'src/plugin/AdblockPlusDomTraverser.cpp',
126 'src/plugin/AdblockPlusTab.cpp', 73 'src/plugin/AdblockPlusTab.cpp',
127 'src/plugin/Plugin.cpp', 74 'src/plugin/Plugin.cpp',
128 'src/plugin/PluginChecksum.cpp', 75 'src/plugin/PluginChecksum.cpp',
129 'src/plugin/PluginClass.cpp', 76 'src/plugin/PluginClass.cpp',
130 'src/plugin/PluginClassThread.cpp', 77 'src/plugin/PluginClassThread.cpp',
(...skipping 19 matching lines...) Expand all
150 'src/plugin/AdblockPlus.idl', 97 'src/plugin/AdblockPlus.idl',
151 'src/plugin/AdblockPlus.rc', 98 'src/plugin/AdblockPlus.rc',
152 'src/plugin/AdblockPlus.rgs', 99 'src/plugin/AdblockPlus.rgs',
153 '<@(shared_files)', 100 '<@(shared_files)',
154 ], 101 ],
155 'include_dirs': [ 102 'include_dirs': [
156 '$(WindowsSDK_IncludePath)', 103 '$(WindowsSDK_IncludePath)',
157 '$(VCInstallDir)atlmfc/include', 104 '$(VCInstallDir)atlmfc/include',
158 '$(WINDDKDIR)/inc/atl71', 105 '$(WINDDKDIR)/inc/atl71',
159 ], 106 ],
160 'library_dirs': [
161 '$(VCInstallDir)atlmfc/lib',
162 ],
163 'defines': ['PRODUCT_ADBLOCKPLUS'], 107 'defines': ['PRODUCT_ADBLOCKPLUS'],
164 'conditions': [
165 [
166 'target_arch=="ia32"', {
167 'library_dirs': [
168 '$(WindowsSDK_LibraryPath_x86)',
169 '$(WINDDKDIR)/lib/ATL/i386',
170 ],
171 }, {
172 'library_dirs': [
173 '$(WindowsSDK_LibraryPath_x64)',
174 '$(WINDDKDIR)/lib/ATL/amd64',
175 ],
176 }
177 ]
178 ],
179 'libraries': [ 108 'libraries': [
180 '-latlthunk', 109 '-latlthunk',
110 '-lwinhttp',
181 '-lshell32', 111 '-lshell32',
182 ], 112 ],
113 'configurations': {
114 # 'libraries' is not allowed under 'configurations' :-(
115 'Debug': {
116 'msvs_settings': {
117 'VCLinkerTool': {
118 'AdditionalDependencies': ['atlsd.lib'],
119 },
120 },
121 },
122 'Release': {
123 'msvs_settings': {
124 'VCLinkerTool': {
125 'AdditionalDependencies': ['atls.lib'],
126 },
127 },
128 },
129 },
183 'msvs_settings': { 130 'msvs_settings': {
184 'VCLinkerTool': { 131 'VCLinkerTool': {
132 'conditions': [[
133 'target_arch=="ia32"', {
134 'AdditionalLibraryDirectories': [
135 '$(WindowsSDK_LibraryPath_x86)',
136 '$(WINDDKDIR)/lib/ATL/i386',
137 ],
138 }, {
139 'AdditionalLibraryDirectories': [
140 '$(WindowsSDK_LibraryPath_x64)',
141 '$(WINDDKDIR)/lib/ATL/amd64',
142 ],
143 }
144 ]],
145 'AdditionalLibraryDirectories': [
146 '$(VCInstallDir)atlmfc/lib',
147 ],
185 'DelayLoadDLLs': ['Shell32.dll'], 148 'DelayLoadDLLs': ['Shell32.dll'],
186 }, 149 },
187 }, 150 },
188 }, { 151 },
152
153 {
189 'target_name': 'tests', 154 'target_name': 'tests',
190 'type': 'executable', 155 'type': 'executable',
191 'dependencies': [ 156 'dependencies': [
192 'libadblockplus/third_party/googletest.gyp:googletest_main', 157 'libadblockplus/third_party/googletest.gyp:googletest_main',
193 ], 158 ],
194 'sources': [ 159 'sources': [
195 '<@(shared_files)',
196 'test/CommunicationTest.cpp', 160 'test/CommunicationTest.cpp',
197 'test/DictionaryTest.cpp', 161 'test/DictionaryTest.cpp',
162 '<@(shared_files)',
198 ], 163 ],
199 'defines': ['WINVER=0x0501'], 164 'defines': ['WINVER=0x0501'],
200 'link_settings': { 165 'link_settings': {
201 'libraries': ['-ladvapi32', '-lshell32', '-lole32'], 166 'libraries': ['-ladvapi32', '-lshell32', '-lole32'],
202 }, 167 },
203 'msvs_settings': { 168 'msvs_settings': {
204 'VCLinkerTool': { 169 'VCLinkerTool': {
205 'SubSystem': '1', # Console 170 'SubSystem': '1', # Console
206 'EntryPointSymbol': 'mainCRTStartup', 171 'EntryPointSymbol': 'mainCRTStartup',
207 }, 172 },
208 }, 173 },
209 }] 174 }]
210 } 175 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld