| Index: build_release.py |
| =================================================================== |
| --- a/build_release.py |
| +++ b/build_release.py |
| @@ -29,46 +29,25 @@ def read_macro_value(file, macro): |
| version = read_macro_value(os.path.join(basedir, "src", "shared", "Version.h"), "IEPLUGIN_VERSION"); |
| buildnum, dummy = subprocess.Popen(['hg', 'id', '-R', basedir, '-n'], stdout=subprocess.PIPE).communicate() |
| buildnum = re.sub(r'\D', '', buildnum) |
| while version.count(".") < 1: |
| version += ".0" |
| version += ".%s" % buildnum |
| -subprocess.call([os.path.join(basedir, "libadblockplus", "createsolution.bat")]) |
| - |
| -preprocessorDefinitions = [ |
| - "IEPLUGIN_VERSION=L\"%s\"" % version, |
| - "VERSIONINFO_VERSION=%s" % (version.replace(".", ",") + ",0"), |
| - |
| - # This macro will be passed to the resource compiler and VS doesn't escape |
| - # quotation marks there automatically despite claiming to do so. |
| - "VERSIONINFO_VERSION_STR=\\\"%s\\\"" % (version + ".0"), |
| -] |
| -buildParams = os.environ.copy() |
| -buildParams["ExternalPreprocessorDefinitions"] = ";".join(preprocessorDefinitions) |
| +subprocess.call([os.path.join(basedir, "createsolution.bat"), version, "devbuild"]) |
| for arch in ("ia32", "x64"): |
| - platform = "/p:Platform=%s" % {"ia32": "Win32", "x64": "x64"}[arch] |
| subprocess.call([ |
| "msbuild", |
| - os.path.join(basedir, "libadblockplus", "build", arch, "libadblockplus.sln"), |
| - "/p:Configuration=Release", |
| - platform |
| - ], env=buildParams) |
| + os.path.join(basedir, "build", arch, "adblockplus.sln"), |
| + "/p:Configuration=Release", "/target:AdblockPlus;AdblockPlusEngine", |
| + ]) |
| - subprocess.call([ |
| - "msbuild", |
| - os.path.join(basedir, "AdblockPlus.sln"), |
| - "/p:Configuration=Release Test", |
| - platform |
| - ], env=buildParams) |
| - |
| - plugin = {"ia32": "AdblockPlus.dll", "x64": "AdblockPlusx64.dll"}[arch] |
| - sign(os.path.join(basedir, "build", arch, "Release Test", plugin), |
| - os.path.join(basedir, "build", arch, "Release Test", "AdblockPlusEngine.exe")) |
| + sign(os.path.join(basedir, "build", arch, "Release", "AdblockPlus.dll"), |
| + os.path.join(basedir, "build", arch, "Release", "AdblockPlusEngine.exe")) |
| installerParams = os.environ.copy() |
| installerParams["VERSION"] = version |
| subprocess.call(["nmake", "/A"], env=installerParams, cwd=os.path.join(basedir, "installer")) |
| sign(os.path.join(basedir, "build", "ia32", "adblockplusie-%s-en-us-ia32.msi" % version), |
| os.path.join(basedir, "build", "x64", "adblockplusie-%s-en-us-x64.msi" % version)) |