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

Side by Side Diff: adblockplus.gyp

Issue 10945039: Switch to gyp (Closed)
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:
View unified diff | Download patch
« no previous file with comments | « AdblockPlusPlugin.vcxproj ('k') | build_release.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 'includes': ['libadblockplus/common.gypi', 'libadblockplus/third_party/googlet est.gyp'], 2 'includes': ['defaults.gypi'],
3 3
4 'targets': [{ 4 'variables': {
5 'target_name': 'tests', 5 'build_type%': 'devbuild',
6 'type': 'executable', 6 'build_version%': '',
7 'dependencies': [ 7 'shared_files': [
8 'googletest_main',
9 ],
10 'sources': [
11 'src/shared/AutoHandle.cpp', 8 'src/shared/AutoHandle.cpp',
12 'src/shared/Communication.cpp', 9 'src/shared/Communication.cpp',
13 'src/shared/Dictionary.cpp', 10 'src/shared/Dictionary.cpp',
14 'src/shared/Utils.cpp', 11 'src/shared/Utils.cpp',
12 ]
13 },
14
15 'target_defaults': {
16 'conditions': [
17 [
18 'build_type=="devbuild"',
19 {
20 'defines': ['ADBLOCK_PLUS_TEST_MODE', 'ADBLOCKPLUS_TEST_MODE'],
21 },
22 {
23 'defines': ['ADBLOCK_PLUS_PRODUCTION_MODE', 'ADBLOCKPLUS_PRODUCTION_MO DE'],
24 },
25 ],
26 [
27 'build_version!=""',
28 {
29 'defines': [
30 'IEPLUGIN_VERSION=L"<(build_version)"',
31 'VERSIONINFO_VERSION=<!(python -c "import sys; print sys.argv[1].rep lace(\'.\', \',\')" <(build_version).0)',
32 'VERSIONINFO_VERSION_STR=\\"<(build_version).0\\"',
33 ],
34 }
35 ],
36 ],
37 },
38
39 'targets': [{
40 'target_name': 'AdblockPlusEngine',
41 'type': 'executable',
42 'dependencies': [
43 'libadblockplus/libadblockplus.gyp:libadblockplus',
44 ],
45 'sources': [
46 'src/engine/main.cpp',
47 'src/engine/Debug.cpp',
48 'src/engine/Updater.cpp',
49 'src/engine/engine.rc',
50 '<@(shared_files)',
51 ],
52 'libraries': [
53 '-ladvapi32',
54 '-lole32',
55 '-luser32',
56 '-lshell32',
57 '-lshlwapi',
58 ],
59 'msbuild_toolset': 'v110_xp',
60 'msvs_settings': {
61 'VCLinkerTool': {
62 'DelayLoadDLLs': ['Shell32.dll'],
63 },
64 },
65 },
66
67 {
68 'target_name': 'AdblockPlus',
69 'type': 'shared_library',
70 'sources': [
71 'src/plugin/AdblockPlusClient.cpp',
72 'src/plugin/AdblockPlusDomTraverser.cpp',
73 'src/plugin/AdblockPlusTab.cpp',
74 'src/plugin/Plugin.cpp',
75 'src/plugin/PluginChecksum.cpp',
76 'src/plugin/PluginClass.cpp',
77 'src/plugin/PluginClassThread.cpp',
78 'src/plugin/PluginClientBase.cpp',
79 'src/plugin/PluginClientFactory.cpp',
80 'src/plugin/PluginConfiguration.cpp',
81 'src/plugin/PluginDebug.cpp',
82 'src/plugin/PluginFilter.cpp',
83 'src/plugin/PluginHttpRequest.cpp',
84 'src/plugin/PluginIniFile.cpp',
85 'src/plugin/PluginIniFileW.cpp',
86 'src/plugin/PluginMimeFilterClient.cpp',
87 'src/plugin/PluginMutex.cpp',
88 'src/plugin/PluginSettings.cpp',
89 'src/plugin/PluginSha1.cpp',
90 'src/plugin/PluginStdAfx.cpp',
91 'src/plugin/PluginSystem.cpp',
92 'src/plugin/PluginTabBase.cpp',
93 'src/plugin/PluginUserSettings.cpp',
94 'src/plugin/PluginUtil.cpp',
95 'src/plugin/PluginWbPassThrough.cpp',
96 'src/plugin/AdblockPlus.def',
97 'src/plugin/AdblockPlus.idl',
98 'src/plugin/AdblockPlus.rc',
99 'src/plugin/AdblockPlus.rgs',
100 '<@(shared_files)',
101 ],
102 'include_dirs': [
103 '$(WindowsSDK_IncludePath)',
104 '$(VCInstallDir)atlmfc/include',
105 '$(WINDDKDIR)/inc/atl71',
106 ],
107 'defines': ['PRODUCT_ADBLOCKPLUS'],
108 'libraries': [
109 '-latlthunk',
110 '-lwinhttp',
111 '-lshell32',
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 },
130 'msvs_settings': {
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 ],
148 'DelayLoadDLLs': ['Shell32.dll'],
149 },
150 },
151 },
152
153 {
154 'target_name': 'tests',
155 'type': 'executable',
156 'dependencies': [
157 'libadblockplus/third_party/googletest.gyp:googletest_main',
158 ],
159 'sources': [
15 'test/CommunicationTest.cpp', 160 'test/CommunicationTest.cpp',
16 'test/DictionaryTest.cpp', 161 'test/DictionaryTest.cpp',
162 '<@(shared_files)',
17 ], 163 ],
18 'defines': ['WINVER=0x0501'], 164 'defines': ['WINVER=0x0501'],
19 'link_settings': { 165 'link_settings': {
20 'libraries': ['-ladvapi32', '-lshell32', '-lole32'], 166 'libraries': ['-ladvapi32', '-lshell32', '-lole32'],
21 }, 167 },
22 'msvs_settings': { 168 'msvs_settings': {
23 'VCLinkerTool': { 169 'VCLinkerTool': {
24 'SubSystem': '1', # Console 170 'SubSystem': '1', # Console
25 'EntryPointSymbol': 'mainCRTStartup', 171 'EntryPointSymbol': 'mainCRTStartup',
26 }, 172 },
27 }, 173 },
28 }] 174 }]
29 } 175 }
OLDNEW
« no previous file with comments | « AdblockPlusPlugin.vcxproj ('k') | build_release.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld