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

Unified Diff: native_client_sdk/src/build_tools/generate_make.py

Issue 23919004: [NaCl SDK] Create a resources/ directory and move files to it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move httpd.cmd too Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « native_client_sdk/src/build_tools/build_projects.py ('k') | native_client_sdk/src/build_tools/library.mk » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/build_tools/generate_make.py
diff --git a/native_client_sdk/src/build_tools/generate_make.py b/native_client_sdk/src/build_tools/generate_make.py
index db124448e6e04ea7cef3c63b0ee67d049d29eaa7..17fbcc904d596e37df969b74ac701b7aa98114bc 100644
--- a/native_client_sdk/src/build_tools/generate_make.py
+++ b/native_client_sdk/src/build_tools/generate_make.py
@@ -11,7 +11,7 @@ import build_version
import getos
from buildbot_common import ErrorExit
from easy_template import RunTemplateFileIfChanged
-from build_paths import SCRIPT_DIR, SDK_EXAMPLE_DIR
+from build_paths import SDK_RESOURCE_DIR
def Trace(msg):
if Trace.verbose:
@@ -137,7 +137,7 @@ def ProcessHTML(srcroot, dstroot, desc, toolchains, configs, first_toolchain):
def GenerateManifest(srcroot, dstroot, desc):
outdir = os.path.join(dstroot, desc['DEST'], desc['NAME'])
- srcpath = os.path.join(SDK_EXAMPLE_DIR, 'resources', 'manifest.json.template')
+ srcpath = os.path.join(SDK_RESOURCE_DIR, 'manifest.json.template')
dstpath = os.path.join(outdir, 'manifest.json')
permissions = desc.get('PERMISSIONS', [])
socket_permissions = desc.get('SOCKET_PERMISSIONS', [])
@@ -182,8 +182,7 @@ def ProcessProject(pepperdir, srcroot, dstroot, desc, toolchains, configs=None,
name = desc['NAME']
out_dir = os.path.join(dstroot, desc['DEST'], name)
buildbot_common.MakeDir(out_dir)
- srcdirs = desc.get('SEARCH', ['.', '..', '../..'])
- srcdirs.append(os.path.join(SDK_EXAMPLE_DIR, 'resources'))
+ srcdirs = desc.get('SEARCH', ['.', SDK_RESOURCE_DIR])
# Copy sources to example directory
sources = GenerateSourceCopyList(desc)
@@ -198,9 +197,9 @@ def ProcessProject(pepperdir, srcroot, dstroot, desc, toolchains, configs=None,
make_path = os.path.join(out_dir, 'Makefile')
if IsNexe(desc):
- template = os.path.join(SCRIPT_DIR, 'template.mk')
+ template = os.path.join(SDK_RESOURCE_DIR, 'Makefile.example.template')
else:
- template = os.path.join(SCRIPT_DIR, 'library.mk')
+ template = os.path.join(SDK_RESOURCE_DIR, 'Makefile.library.template')
# Ensure the order of |tools| is the same as toolchains; that way if
# first_toolchain is set, it will choose based on the order of |toolchains|.
@@ -240,7 +239,7 @@ def GenerateMasterMakefile(pepperdir, out_path, targets):
out_path: Root for output such that out_path+NAME = full path
targets: List of targets names
"""
- in_path = os.path.join(SDK_EXAMPLE_DIR, 'Makefile')
+ in_path = os.path.join(SDK_RESOURCE_DIR, 'Makefile.index.template')
out_path = os.path.join(out_path, 'Makefile')
rel_path = os.path.relpath(pepperdir, os.path.dirname(out_path))
template_dict = {
« no previous file with comments | « native_client_sdk/src/build_tools/build_projects.py ('k') | native_client_sdk/src/build_tools/library.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698