CocosCreator接入wwise的CocosAndroid.mk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
NDKROOT = G:/ProgramFils/android-sdk/ndk/21.4.7075529


ifndef AK_CONFIG
AK_CONFIG := Debug
endif

ifneq ($(AK_CONFIG), Debug)
NDK_DEBUG := 1
endif

AK_ANDROID := 1

WWISESDK :=G:/Wwise2021177796/SDK

include $(CLEAR_VARS)

SDK_LIB_DIR := ${WWISESDK}/Android_$(APP_ABI)/Profile/lib


include $(CLEAR_VARS)
LOCAL_MODULE            := CommunicationCentral
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libCommunicationCentral.a
include $(PREBUILT_STATIC_LIBRARY)


include $(CLEAR_VARS)
LOCAL_MODULE            := AkMemoryMgr
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkMemoryMgr.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkSoundEngine
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkSoundEngine.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkMeterFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkMeterFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkPeakLimiterFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkPeakLimiterFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkHarmonizerFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkHarmonizerFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkStereoDelayFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkStereoDelayFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkMusicEngine
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkMusicEngine.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkTimeStretchFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkTimeStretchFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := McDSPLimiterFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libMcDSPLimiterFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkCompressorFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkCompressorFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkFlangerFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkFlangerFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkPitchShifterFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkPitchShifterFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkSoundSeedImpactFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkSoundSeedImpactFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := McDSPFutzBoxFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libMcDSPFutzBoxFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkRoomVerbFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkRoomVerbFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkSineSource
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkSineSource.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkSilenceSource
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkSilenceSource.a
include $(PREBUILT_STATIC_LIBRARY)


include $(CLEAR_VARS)
LOCAL_MODULE            := AkParametricEQFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkParametricEQFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkVorbisDecoder
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkVorbisDecoder.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkToneSource
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkToneSource.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkExpanderFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkExpanderFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkGuitarDistortionFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkGuitarDistortionFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkTremoloFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkTremoloFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkMatrixReverbFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkMatrixReverbFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkStreamMgr
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkStreamMgr.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkDelayFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkDelayFX.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkAudioInputSource
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkAudioInputSource.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE            := AkGainFX
LOCAL_SRC_FILES         := $(SDK_LIB_DIR)/libAkGainFX.a
include $(PREBUILT_STATIC_LIBRARY)


include $(CLEAR_VARS)
LOCAL_MODULE    := zip
LOCAL_SRC_FILES := $(SDK_LIB_DIR)/libzip.a
include $(PREBUILT_STATIC_LIBRARY)


include $(CLEAR_VARS)
LOCAL_MODULE    := AkSpatialAudio
LOCAL_SRC_FILES := $(SDK_LIB_DIR)/libAkSpatialAudio.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE    := AkSynthOneSource
LOCAL_SRC_FILES := $(SDK_LIB_DIR)/libAkSynthOneSource.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)

LOCAL_ARM_MODE   := arm

LOCAL_MODULE := cocos2djs
LOCAL_MODULE_FILENAME := libcocos2djs

$(warning " -------- 333-------- LOCAL_PATH is $(LOCAL_PATH)")
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
LOCAL_C_INCLUDES += $(LOCAL_PATH)/hellojavascript
LOCAL_C_INCLUDES += ${WWISESDK}/samples/SoundEngine/Android
LOCAL_C_INCLUDES += ${WWISESDK}/samples/SoundEngine/Common
LOCAL_C_INCLUDES += ${WWISESDK}/include
LOCAL_C_INCLUDES += ${WWISESDK}/include/AK/SoundEngine/Common
LOCAL_C_INCLUDES += $(WWISESDK)/samples/SoundEngine/Android/libzip/lib
LOCAL_C_INCLUDES += ${WWISESDK}/samples/IntegrationDemo/Android
LOCAL_C_INCLUDES += ${WWISESDK}/samples/IntegrationDemo/Android
LOCAL_C_INCLUDES += F:/ProgramData/cocos/editors/2.4.9/resources/cocos2d-x/cocos
LOCAL_C_INCLUDES += F:/ProgramData/cocos/editors/2.4.9/resources/cocos2d-x/cocos/audio/include
LOCAL_C_INCLUDES += F:/ProgramData/cocos/editors/2.4.9/resources/cocos2d-x/extensions
LOCAL_C_INCLUDES += F:/ProgramData/cocos/editors/2.4.9/resources/cocos2d-x/external
LOCAL_C_INCLUDES += F:/ProgramData/cocos/editors/2.4.9/resources/cocos2d-x/cocos/scripting/js-bindings/manual
LOCAL_C_INCLUDES += F:/ProgramData/cocos/editors/2.4.9/resources/cocos2d-x/cocos/scripting/js-bindings/jswrapper/v8
LOCAL_C_INCLUDES += $(NDKROOT)/sources/android/native_app_glue
LOCAL_C_INCLUDES += F:/ProgramData/cocos/editors/2.4.9/resources/cocos2d-x/external/sources/edtaa3func


LOCAL_SRC_FILES := hellojavascript/main.cpp  \
                  ../../Classes/AppDelegate.cpp \
                  ../../Classes/jsb_module_register.cpp \
                  ../../Classes/YLWwiseEngine_auto.cpp \
                    ${WWISESDK}/samples/SoundEngine/Android/AkDefaultIOHookBlocking.cpp \
                   ${WWISESDK}/samples/SoundEngine/Android/AkDefaultIOHookDeferred.cpp \
                   ${WWISESDK}/samples/SoundEngine/Android/AkFileHelpers.cpp \
                   ${WWISESDK}/samples/SoundEngine/Common/AkFileLocationBase.cpp \
                    ${WWISESDK}/samples/SoundEngine/Common/AkFilePackage.cpp \
                   ${WWISESDK}/samples/SoundEngine/Common/AkFilePackageLUT.cpp \
                   ${WWISESDK}/samples/SoundEngine/Common/AkDefaultLowLevelIODispatcher.cpp \
 ../../Classes/YLWwiseEngine.cpp  \
 ../../Classes/PostEventGan.cpp \
 ../../Classes/PostObj.cpp \
 ../../Classes/CocosJSBridge.cpp \


LOCAL_LDLIBS := -llog -lOpenSLES -landroid -lEGL -lGLESv1_CM
LOCAL_CFLAGS := -DLUA_USE_POSIX
LOCAL_CFLAGS += -DAK_DEBUG -DCOCOS_INTEGRATION

LOCAL_STATIC_LIBRARIES := cocos2dx_static AkMemoryMgr AkMusicEngine AkSoundEngine AkStreamMgr zip AkSpatialAudio AkPeakLimiterFX AkDelayFX AkMatrixReverbFX AkRoomVerbFX AkToneSource AkStereoDelayFX AkSynthOneSource AkAudioInputSource AkParametricEQFX CommunicationCentral
#LOCAL_WHOLE_STATIC_LIBRARIES += c++_static AkMemoryMgr AkMusicEngine AkSoundEngine AkStreamMgr zip AkSpatialAudio AkPeakLimiterFX AkDelayFX AkMatrixReverbFX AkRoomVerbFX AkToneSource AkStereoDelayFX AkSynthOneSource AkAudioInputSource AkParametricEQFX


include $(BUILD_SHARED_LIBRARY)
$(call import-module,cocos)
 

你可能感兴趣的:(前端)