| # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | # |
| 15 | # this file is included from Android.mk files to build a target-specific |
| 16 | # executable program |
| 17 | # |
| 18 | # Modified by @Mygod, based on: |
| 19 | # https://android.googlesource.com/platform/ndk/+/a355a4e/build/core/build-shared-library.mk |
| 20 | # https://android.googlesource.com/platform/ndk/+/a355a4e/build/core/build-executable.mk |
| 21 | LOCAL_BUILD_SCRIPT := BUILD_EXECUTABLE |
| 22 | LOCAL_MAKEFILE := $(local-makefile) |
| 23 | $(call check-defined-LOCAL_MODULE,$(LOCAL_BUILD_SCRIPT)) |
| 24 | $(call check-LOCAL_MODULE,$(LOCAL_MAKEFILE)) |
| 25 | $(call check-LOCAL_MODULE_FILENAME) |
| 26 | # we are building target objects |
| 27 | my := TARGET_ |
| 28 | $(call handle-module-filename,lib,$(TARGET_SONAME_EXTENSION)) |
| 29 | $(call handle-module-built) |
| 30 | LOCAL_MODULE_CLASS := EXECUTABLE |
| 31 | include $(BUILD_SYSTEM)/build-module.mk |
| 32 |