Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: third_party/libmicrohttpd/build.py

Issue 1775203002: Add SkDrawPosTextHCommand JSON, fix skiaserve build. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix position count, always define target. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/most.gyp ('k') | tools/debugger/SkDrawCommand.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 Google Inc. 1 # Copyright 2016 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # this script will configure and build microhttpd in a temp directory and then 6 # this script will configure and build microhttpd in a temp directory and then
7 # copy the static library generated to a destination folder 7 # copy the static library generated to a destination folder
8 import argparse 8 import argparse
9 import os 9 import os
10 from subprocess import call 10 from subprocess import call
11 import shutil 11 import shutil
12 import tempfile 12 import tempfile
13 13
14 parser = argparse.ArgumentParser() 14 parser = argparse.ArgumentParser()
15 parser.add_argument("--src", help="microhttpd src directory") 15 parser.add_argument("--src", help="microhttpd src directory")
16 parser.add_argument("--dst", help="output for build files") 16 parser.add_argument("--out", help="build directory")
17 parser.add_argument("--dst", help="output for final build products")
17 args = parser.parse_args() 18 args = parser.parse_args()
18 19
19 temp_dir = tempfile.mkdtemp() 20 out_dir = args.out
20 cwd = os.getcwd() 21 cwd = os.getcwd()
21 os.chdir(temp_dir) 22 try:
22 call([cwd + "/" + args.src + "/configure", 23 os.makedirs(out_dir)
24 except OSError as e:
25 pass
26
27 os.chdir(out_dir)
28 call([os.path.join(cwd, args.src, "configure"),
23 "--disable-doc", 29 "--disable-doc",
24 "--disable-examples", 30 "--disable-examples",
25 "--enable-https=no", 31 "--enable-https=no",
26 "--disable-curl", 32 "--disable-curl",
27 "--enable-spdy=no", 33 "--enable-spdy=no",
28 "--enable-shared=no"]) 34 "--enable-shared=no"])
29 call(["make", "--silent"]) 35 call(["make", "--silent"])
30 call(["cp", 36 call(["cp",
31 temp_dir + "/src/microhttpd/.libs/libmicrohttpd.a", 37 "src/microhttpd/.libs/libmicrohttpd.a",
32 cwd + "/" + args.dst]) 38 os.path.join(cwd, args.dst)])
33 shutil.rmtree(temp_dir)
34
OLDNEW
« no previous file with comments | « gyp/most.gyp ('k') | tools/debugger/SkDrawCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698