aboutsummaryrefslogtreecommitdiffstats
path: root/androidmk
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-08-15 15:02:23 -0700
committerDan Willemsen <dwillemsen@google.com>2016-08-25 15:50:21 -0700
commit377737a01c0606eb23708b2bfb827dbaf3d4398e (patch)
tree92691365174d9a28ab1bab969f4b98749f5cd703 /androidmk
parent0f4e0d6c5d3688766747f353e1799c259d6c0d99 (diff)
downloadbuild_soong-377737a01c0606eb23708b2bfb827dbaf3d4398e.tar.gz
build_soong-377737a01c0606eb23708b2bfb827dbaf3d4398e.tar.bz2
build_soong-377737a01c0606eb23708b2bfb827dbaf3d4398e.zip
Move Android.bp definitions into subdirs
Test: m blueprint_tools still produces the same tools Change-Id: Ia1e2e43c62cb6035616bef9fbef56417b46cf3a4
Diffstat (limited to 'androidmk')
-rw-r--r--androidmk/Android.bp48
1 files changed, 48 insertions, 0 deletions
diff --git a/androidmk/Android.bp b/androidmk/Android.bp
new file mode 100644
index 00000000..67baf0ae
--- /dev/null
+++ b/androidmk/Android.bp
@@ -0,0 +1,48 @@
+// Copyright 2015 Google Inc. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+//
+// androidmk Android.mk to Blueprints translator
+//
+
+blueprint_go_binary {
+ name: "androidmk",
+ srcs: [
+ "cmd/androidmk/android.go",
+ "cmd/androidmk/androidmk.go",
+ "cmd/androidmk/values.go",
+ ],
+ testSrcs: [
+ "cmd/androidmk/androidmk_test.go",
+ ],
+ deps: [
+ "androidmk-parser",
+ "blueprint-parser",
+ ],
+}
+
+bootstrap_go_package {
+ name: "androidmk-parser",
+ pkgPath: "android/soong/androidmk/parser",
+ srcs: [
+ "parser/ast.go",
+ "parser/make_strings.go",
+ "parser/parser.go",
+ "parser/scope.go",
+ ],
+ testSrcs: [
+ "parser/make_strings_test.go",
+ ],
+}
+