diff options
author | Xavier Ducrohet <xav@google.com> | 2013-11-14 11:37:58 -0800 |
---|---|---|
committer | Xavier Ducrohet <xav@google.com> | 2013-11-14 15:38:44 -0800 |
commit | 4204c184b20dbbe7b81f06ca8f21605aa0cbc9e6 (patch) | |
tree | 55bbba664328e96d42948744930c42a54c26a32c /builder-model/src/main | |
parent | 984c1a5a52b0b962f903e73106e0c32cf18fd38f (diff) | |
download | build-4204c184b20dbbe7b81f06ca8f21605aa0cbc9e6.tar.gz |
Support for jni lib in library project.
Change-Id: I5598af8cb6300ffd67ea6f112a6868c338c8efbe
Diffstat (limited to 'builder-model/src/main')
3 files changed, 59 insertions, 0 deletions
diff --git a/builder-model/src/main/java/com/android/builder/NdkConfig.java b/builder-model/src/main/java/com/android/builder/NdkConfig.java new file mode 100644 index 0000000..b3bebef --- /dev/null +++ b/builder-model/src/main/java/com/android/builder/NdkConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2013 The Android Open Source Project + * + * 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. + */ + +package com.android.builder; + +import com.android.annotations.Nullable; + +import java.util.Set; + +/** + * Base class for NDK config file. + */ +public interface NdkConfig { + + /** + * The module name + */ + @Nullable + public String getModuleName(); + + /** + * The C Flags + */ + @Nullable + public String getcFlags(); + + /** + * The LD Libs + */ + @Nullable + public String getLdLibs(); + + /** + * The ABI Filters + */ + @Nullable + public Set<String> getAbiFilters(); +} diff --git a/builder-model/src/main/java/com/android/builder/model/BuildType.java b/builder-model/src/main/java/com/android/builder/model/BuildType.java index 33d9ada..d846a90 100644 --- a/builder-model/src/main/java/com/android/builder/model/BuildType.java +++ b/builder-model/src/main/java/com/android/builder/model/BuildType.java @@ -18,6 +18,7 @@ package com.android.builder.model; import com.android.annotations.NonNull; import com.android.annotations.Nullable; +import com.android.builder.NdkConfig; /** * a Build Type. This is only the configuration of the build type. @@ -97,4 +98,7 @@ public interface BuildType extends BaseConfig { * @return true if zipalign is enabled. */ boolean isZipAlign(); + + @Nullable + NdkConfig getNdkConfig(); } diff --git a/builder-model/src/main/java/com/android/builder/model/ProductFlavor.java b/builder-model/src/main/java/com/android/builder/model/ProductFlavor.java index f281f8e..9563136 100644 --- a/builder-model/src/main/java/com/android/builder/model/ProductFlavor.java +++ b/builder-model/src/main/java/com/android/builder/model/ProductFlavor.java @@ -18,6 +18,7 @@ package com.android.builder.model; import com.android.annotations.NonNull; import com.android.annotations.Nullable; +import com.android.builder.NdkConfig; /** * a Product Flavor. This is only the configuration of the flavor. @@ -125,4 +126,7 @@ public interface ProductFlavor extends BaseConfig { */ @Nullable Boolean getTestFunctionalTest(); + + @Nullable + NdkConfig getNdkConfig(); } |