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

Unified Diff: native_client_sdk/src/build_tools/library.mk

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/generate_make.py ('k') | native_client_sdk/src/build_tools/template.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/library.mk
diff --git a/native_client_sdk/src/build_tools/library.mk b/native_client_sdk/src/build_tools/library.mk
deleted file mode 100644
index ff991aaca1c956cb8ac412a4459df14639f7930c..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/build_tools/library.mk
+++ /dev/null
@@ -1,65 +0,0 @@
-# Copyright (c) 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-[[def ExpandDict(key, value_in, pre_list=[], post_list=[]):]]
-[[ value = value_in or [] ]]
-[[ pre = pre_list or [] ]]
-[[ post = post_list or [] ]]
-[[ if type(value) is not dict:]]
-[[ out = pre]]
-[[ out.extend(value)]]
-[[ out.extend(post)]]
-[[ if out:]]
-{{key}} = {{' '.join(out)}}
-[[ ]]
-[[ return]]
-[[ ]]
-[[ for subkey in value:]]
-[[ out = pre]]
-[[ out.extend(value[subkey])]]
-[[ out.extend(post)]]
-{{key}}_{{subkey}} = {{' '.join(out)}}
-[[ ]]
-{{key}} = $({{key}}_$(TOOLCHAIN))
-[[]]
-
-[[target = targets[0] ]]
-# GNU Makefile based on shared rules provided by the Native Client SDK.
-# See README.Makefiles for more details.
-
-VALID_TOOLCHAINS := {{' '.join(tools)}}
-NACL_SDK_ROOT ?= $(abspath $(CURDIR)/../..)
-[[if 'INCLUDES' in target:]]
-EXTRA_INC_PATHS={{' '.join(target['INCLUDES'])}}
-[[]]
-
-include $(NACL_SDK_ROOT)/tools/common.mk
-
-TARGET = {{target['NAME']}}
-[[flags = target.get('CFLAGS', [])]]
-[[flags.extend(target.get('CXXFLAGS', []))]]
-[[ExpandDict('CFLAGS', flags)]]
-[[if 'CFLAGS_GCC' in target:]]
-ifneq ($(TOOLCHAIN),pnacl)
-CFLAGS += {{' '.join(target['CFLAGS_GCC'])}}
-endif
-[[]]
-
-SOURCES = \
-[[for source in sorted(target['SOURCES']):]]
- {{source}} \
-[[]]
-
-all: install
-
-# Build rules generated by macros from common.mk:
-#
-$(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS))))
-$(eval $(call LIB_RULE,$(TARGET),$(SOURCES)))
-
-[[if target['TYPE'] != 'static-lib':]]
-ifeq ($(TOOLCHAIN),glibc)
-$(eval $(call SO_RULE,$(TARGET),$(SOURCES)))
-endif
-[[]]
-{{post}}
« no previous file with comments | « native_client_sdk/src/build_tools/generate_make.py ('k') | native_client_sdk/src/build_tools/template.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698