Vinit Deshpande | 155b9d0 | 2014-01-08 23:46:46 +0000 | [diff] [blame] | 1 | # Copyright (C) 2011 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 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 | LOCAL_PATH := $(call my-dir) |
| 16 | |
Colin Cross | 432674a | 2014-03-18 12:39:15 -0700 | [diff] [blame] | 17 | ifneq ($(TARGET_BUILD_PDK), true) |
| 18 | |
Vinit Deshpande | 155b9d0 | 2014-01-08 23:46:46 +0000 | [diff] [blame] | 19 | include $(CLEAR_VARS) |
| 20 | |
| 21 | LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/java |
| 22 | LOCAL_SRC_FILES := $(call all-java-files-under, java) \ |
| 23 | $(call all-Iaidl-files-under, java) \ |
| 24 | $(call all-logtags-files-under, java) |
| 25 | |
| 26 | LOCAL_JNI_SHARED_LIBRARIES := libandroid_runtime |
| 27 | LOCAL_JAVA_LIBRARIES := services |
| 28 | LOCAL_REQUIRED_MODULES := services |
| 29 | LOCAL_MODULE_TAGS := |
| 30 | LOCAL_MODULE := wifi-service |
| 31 | |
| 32 | include $(BUILD_JAVA_LIBRARY) |
| 33 | |
Vinit Deshapnde | 7ef73dd | 2014-02-28 08:42:14 -0800 | [diff] [blame] | 34 | # Make the HAL library |
| 35 | # ============================================================ |
| 36 | include $(CLEAR_VARS) |
| 37 | |
| 38 | LOCAL_REQUIRED_MODULES := |
| 39 | |
| 40 | LOCAL_CFLAGS += -Wno-unused-parameter -Wno-int-to-pointer-cast |
| 41 | LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses |
| 42 | LOCAL_CPPFLAGS += -Wno-conversion-null |
| 43 | |
| 44 | LOCAL_C_INCLUDES += \ |
Colin Cross | b13c0f2 | 2014-03-19 18:46:03 -0700 | [diff] [blame] | 45 | external/libnl/include |
Vinit Deshapnde | 7ef73dd | 2014-02-28 08:42:14 -0800 | [diff] [blame] | 46 | |
| 47 | LOCAL_SRC_FILES := \ |
| 48 | lib/wifi_hal.cpp \ |
| 49 | lib/common.cpp \ |
| 50 | lib/cpp_bindings.cpp \ |
| 51 | lib/gscan.cpp |
| 52 | |
| 53 | LOCAL_MODULE := libwifi-hal |
| 54 | |
| 55 | include $(BUILD_STATIC_LIBRARY) |
| 56 | |
Vinit Deshpande | 155b9d0 | 2014-01-08 23:46:46 +0000 | [diff] [blame] | 57 | # Make the JNI part |
| 58 | # ============================================================ |
| 59 | include $(CLEAR_VARS) |
| 60 | |
| 61 | LOCAL_REQUIRED_MODULES := libandroid_runtime libhardware_legacy |
| 62 | |
| 63 | LOCAL_CFLAGS += -Wno-unused-parameter -Wno-int-to-pointer-cast |
| 64 | LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses |
| 65 | LOCAL_CPPFLAGS += -Wno-conversion-null |
| 66 | |
| 67 | LOCAL_C_INCLUDES += \ |
| 68 | $(JNI_H_INCLUDE) \ |
| 69 | $(call include-path-for, libhardware)/hardware \ |
| 70 | $(call include-path-for, libhardware_legacy)/hardware_legacy \ |
Vinit Deshapnde | 7ef73dd | 2014-02-28 08:42:14 -0800 | [diff] [blame] | 71 | libcore/include \ |
| 72 | $(LOCAL_PATH)/lib |
| 73 | |
Vinit Deshpande | 155b9d0 | 2014-01-08 23:46:46 +0000 | [diff] [blame] | 74 | LOCAL_SHARED_LIBRARIES += \ |
| 75 | libnativehelper \ |
| 76 | libcutils \ |
| 77 | libutils \ |
| 78 | libhardware \ |
| 79 | libhardware_legacy \ |
Colin Cross | b13c0f2 | 2014-03-19 18:46:03 -0700 | [diff] [blame] | 80 | libandroid_runtime \ |
| 81 | libnl |
Vinit Deshapnde | 7ef73dd | 2014-02-28 08:42:14 -0800 | [diff] [blame] | 82 | |
Colin Cross | b13c0f2 | 2014-03-19 18:46:03 -0700 | [diff] [blame] | 83 | LOCAL_STATIC_LIBRARIES += libwifi-hal |
Vinit Deshpande | 155b9d0 | 2014-01-08 23:46:46 +0000 | [diff] [blame] | 84 | |
Vinit Deshapnde | 7f9a15d | 2014-05-07 16:29:44 -0700 | [diff] [blame^] | 85 | LOCAL_SRC_FILES := \ |
| 86 | jni/com_android_server_wifi_WifiNative.cpp \ |
| 87 | jni/jni_helper.cpp |
| 88 | |
Vinit Deshpande | 155b9d0 | 2014-01-08 23:46:46 +0000 | [diff] [blame] | 89 | LOCAL_MODULE := libwifi-service |
| 90 | |
| 91 | include $(BUILD_SHARED_LIBRARY) |
Colin Cross | 432674a | 2014-03-18 12:39:15 -0700 | [diff] [blame] | 92 | |
Vinit Deshapnde | 7f9a15d | 2014-05-07 16:29:44 -0700 | [diff] [blame^] | 93 | # Build the halutil |
| 94 | # ============================================================ |
| 95 | |
| 96 | include $(CLEAR_VARS) |
| 97 | |
| 98 | LOCAL_REQUIRED_MODULES := libandroid_runtime libhardware_legacy |
| 99 | |
| 100 | LOCAL_CFLAGS += -Wno-unused-parameter -Wno-int-to-pointer-cast |
| 101 | LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses |
| 102 | LOCAL_CPPFLAGS += -Wno-conversion-null |
| 103 | |
| 104 | LOCAL_C_INCLUDES += \ |
| 105 | libcore/include \ |
| 106 | $(LOCAL_PATH)/lib |
| 107 | |
| 108 | LOCAL_SHARES_LIBRARIES += \ |
| 109 | libcutils \ |
| 110 | libutils \ |
| 111 | libandroid_runtime |
| 112 | |
| 113 | LOCAL_STATIC_LIBRARIES := libwifi-hal libnl_2 |
| 114 | |
| 115 | LOCAL_SHARED_LIBRARIES += \ |
| 116 | libnativehelper \ |
| 117 | libcutils \ |
| 118 | libutils \ |
| 119 | libhardware \ |
| 120 | libhardware_legacy |
| 121 | |
| 122 | LOCAL_SRC_FILES := \ |
| 123 | tools/halutil/halutil.cpp |
| 124 | |
| 125 | LOCAL_MODULE := halutil |
| 126 | |
| 127 | include $(BUILD_EXECUTABLE) |
| 128 | |