mirror of https://github.com/axmolengine/axmol.git
Merge pull request #15328 from zilongshanren/fixSimpleAudioEngineInclude
[ci skip]add audio SimpleAudioEngine.h search path back
This commit is contained in:
commit
58ed6216f1
|
@ -1,4 +1,5 @@
|
||||||
#include "HelloWorldScene.h"
|
#include "HelloWorldScene.h"
|
||||||
|
#include "SimpleAudioEngine.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
||||||
|
@ -40,7 +41,7 @@ bool HelloWorld::init()
|
||||||
"CloseSelected.png",
|
"CloseSelected.png",
|
||||||
CC_CALLBACK_1(HelloWorld::menuCloseCallback, this));
|
CC_CALLBACK_1(HelloWorld::menuCloseCallback, this));
|
||||||
|
|
||||||
closeItem->setPosition(Vec2(origin.x + visibleSize.width - closeItem->getContentSize().width/2 ,
|
closeItem->setPosition(Vec2(origin.x + visibleSize.width - closeItem->getContentSize().width/2 ,
|
||||||
origin.y + closeItem->getContentSize().height/2));
|
origin.y + closeItem->getContentSize().height/2));
|
||||||
|
|
||||||
// create menu, it's an autorelease object
|
// create menu, it's an autorelease object
|
||||||
|
|
|
@ -5,6 +5,7 @@ include $(CLEAR_VARS)
|
||||||
$(call import-add-path,$(LOCAL_PATH)/../../../cocos2d)
|
$(call import-add-path,$(LOCAL_PATH)/../../../cocos2d)
|
||||||
$(call import-add-path,$(LOCAL_PATH)/../../../cocos2d/external)
|
$(call import-add-path,$(LOCAL_PATH)/../../../cocos2d/external)
|
||||||
$(call import-add-path,$(LOCAL_PATH)/../../../cocos2d/cocos)
|
$(call import-add-path,$(LOCAL_PATH)/../../../cocos2d/cocos)
|
||||||
|
$(call import-add-path,$(LOCAL_PATH)/../../../cocos2d/cocos/audio/include)
|
||||||
|
|
||||||
LOCAL_MODULE := MyGame_shared
|
LOCAL_MODULE := MyGame_shared
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ include $(CLEAR_VARS)
|
||||||
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d)
|
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d)
|
||||||
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/external)
|
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/external)
|
||||||
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos)
|
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos)
|
||||||
|
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos/audio/include)
|
||||||
|
|
||||||
LOCAL_MODULE := MyGame_shared
|
LOCAL_MODULE := MyGame_shared
|
||||||
|
|
||||||
|
|
|
@ -545,9 +545,7 @@
|
||||||
"CC_ENABLE_CHIPMUNK_INTEGRATION=1",
|
"CC_ENABLE_CHIPMUNK_INTEGRATION=1",
|
||||||
);
|
);
|
||||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||||
HEADER_SEARCH_PATHS = (
|
HEADER_SEARCH_PATHS = "$(inherited)";
|
||||||
"$(inherited)",
|
|
||||||
);
|
|
||||||
INFOPLIST_FILE = ios/Info.plist;
|
INFOPLIST_FILE = ios/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
|
||||||
LIBRARY_SEARCH_PATHS = "";
|
LIBRARY_SEARCH_PATHS = "";
|
||||||
|
@ -577,9 +575,7 @@
|
||||||
"CC_ENABLE_CHIPMUNK_INTEGRATION=1",
|
"CC_ENABLE_CHIPMUNK_INTEGRATION=1",
|
||||||
);
|
);
|
||||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||||
HEADER_SEARCH_PATHS = (
|
HEADER_SEARCH_PATHS = "$(inherited)";
|
||||||
"$(inherited)",
|
|
||||||
);
|
|
||||||
INFOPLIST_FILE = ios/Info.plist;
|
INFOPLIST_FILE = ios/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
|
||||||
LIBRARY_SEARCH_PATHS = "";
|
LIBRARY_SEARCH_PATHS = "";
|
||||||
|
@ -665,6 +661,7 @@
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
HEADER_SEARCH_PATHS = (
|
HEADER_SEARCH_PATHS = (
|
||||||
"$(SRCROOT)/../cocos2d",
|
"$(SRCROOT)/../cocos2d",
|
||||||
|
"$(SRCROOT)/../cocos2d/cocos/audio/include",
|
||||||
"$(SRCROOT)/../cocos2d/cocos",
|
"$(SRCROOT)/../cocos2d/cocos",
|
||||||
"$(SRCROOT)/../cocos2d/extensions",
|
"$(SRCROOT)/../cocos2d/extensions",
|
||||||
"$(SRCROOT)/../cocos2d/external",
|
"$(SRCROOT)/../cocos2d/external",
|
||||||
|
@ -687,6 +684,7 @@
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
HEADER_SEARCH_PATHS = (
|
HEADER_SEARCH_PATHS = (
|
||||||
"$(SRCROOT)/../cocos2d",
|
"$(SRCROOT)/../cocos2d",
|
||||||
|
"$(SRCROOT)/../cocos2d/cocos/audio/include",
|
||||||
"$(SRCROOT)/../cocos2d/cocos",
|
"$(SRCROOT)/../cocos2d/cocos",
|
||||||
"$(SRCROOT)/../cocos2d/extensions",
|
"$(SRCROOT)/../cocos2d/extensions",
|
||||||
"$(SRCROOT)/../cocos2d/external",
|
"$(SRCROOT)/../cocos2d/external",
|
||||||
|
|
|
@ -850,7 +850,7 @@
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.8;
|
MACOSX_DEPLOYMENT_TARGET = 10.8;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../cocos2d-x $(SRCROOT)/../../cocos2d-x/cocos $(SRCROOT)/../../cocos2d-x/extensions $(SRCROOT)/../../cocos2d-x/external $(SRCROOT)/../../cocos2d-x/external/chipmunk/include/chipmunk $(SRCROOT)/../../cocos2d-x/cocos/editor-support";
|
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../cocos2d-x $(SRCROOT)/../../cocos2d-x/cocos/audio/include $(SRCROOT)/../../cocos2d-x/cocos $(SRCROOT)/../../cocos2d-x/extensions $(SRCROOT)/../../cocos2d-x/external $(SRCROOT)/../../cocos2d-x/external/chipmunk/include/chipmunk $(SRCROOT)/../../cocos2d-x/cocos/editor-support";
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
|
@ -873,7 +873,7 @@
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.8;
|
MACOSX_DEPLOYMENT_TARGET = 10.8;
|
||||||
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
|
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../cocos2d-x $(SRCROOT)/../../cocos2d-x/cocos $(SRCROOT)/../../cocos2d-x/extensions $(SRCROOT)/../../cocos2d-x/external $(SRCROOT)/../../cocos2d-x/external/chipmunk/include/chipmunk $(SRCROOT)/../../cocos2d-x/cocos/editor-support";
|
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../cocos2d-x $(SRCROOT)/../../cocos2d-x/cocos/audio/include $(SRCROOT)/../../cocos2d-x/cocos $(SRCROOT)/../../cocos2d-x/extensions $(SRCROOT)/../../cocos2d-x/external $(SRCROOT)/../../cocos2d-x/external/chipmunk/include/chipmunk $(SRCROOT)/../../cocos2d-x/cocos/editor-support";
|
||||||
VALIDATE_PRODUCT = YES;
|
VALIDATE_PRODUCT = YES;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
|
|
|
@ -842,7 +842,7 @@
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../cocos2d-x $(SRCROOT)/../../cocos2d-x/cocos $(SRCROOT)/../../cocos2d-x/extensions $(SRCROOT)/../../cocos2d-x/external $(SRCROOT)/../../cocos2d-x/external/chipmunk/include/chipmunk $(SRCROOT)/../../cocos2d-x/external/lua/luajit/include $(SRCROOT)/../../cocos2d-x/external/lua/tolua $(SRCROOT)/../../cocos2d-x/tools/simulator/libsimulator/lib $(SRCROOT)/../../cocos2d-x/tools/simulator/libsimulator/lib/protobuf-lite";
|
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../cocos2d-x $(SRCROOT)/../../cocos2d-x/cocos/audio/include $(SRCROOT)/../../cocos2d-x/cocos $(SRCROOT)/../../cocos2d-x/extensions $(SRCROOT)/../../cocos2d-x/external $(SRCROOT)/../../cocos2d-x/external/chipmunk/include/chipmunk $(SRCROOT)/../../cocos2d-x/external/lua/luajit/include $(SRCROOT)/../../cocos2d-x/external/lua/tolua $(SRCROOT)/../../cocos2d-x/tools/simulator/libsimulator/lib $(SRCROOT)/../../cocos2d-x/tools/simulator/libsimulator/lib/protobuf-lite";
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
|
@ -864,7 +864,7 @@
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
|
||||||
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
|
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../cocos2d-x $(SRCROOT)/../../cocos2d-x/cocos $(SRCROOT)/../../cocos2d-x/extensions $(SRCROOT)/../../cocos2d-x/external $(SRCROOT)/../../cocos2d-x/external/chipmunk/include/chipmunk $(SRCROOT)/../../cocos2d-x/external/lua/luajit/include $(SRCROOT)/../../cocos2d-x/external/lua/tolua $(SRCROOT)/../../cocos2d-x/tools/simulator/libsimulator/lib $(SRCROOT)/../../cocos2d-x/tools/simulator/libsimulator/lib/protobuf-lite";
|
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../cocos2d-x $(SRCROOT)/../../cocos2d-x/cocos/audio/include $(SRCROOT)/../../cocos2d-x/cocos $(SRCROOT)/../../cocos2d-x/extensions $(SRCROOT)/../../cocos2d-x/external $(SRCROOT)/../../cocos2d-x/external/chipmunk/include/chipmunk $(SRCROOT)/../../cocos2d-x/external/lua/luajit/include $(SRCROOT)/../../cocos2d-x/external/lua/tolua $(SRCROOT)/../../cocos2d-x/tools/simulator/libsimulator/lib $(SRCROOT)/../../cocos2d-x/tools/simulator/libsimulator/lib/protobuf-lite";
|
||||||
VALIDATE_PRODUCT = YES;
|
VALIDATE_PRODUCT = YES;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
|
@ -879,9 +879,7 @@
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||||
GCC_PREFIX_HEADER = ios/Prefix.pch;
|
GCC_PREFIX_HEADER = ios/Prefix.pch;
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
|
||||||
"$(inherited)",
|
|
||||||
);
|
|
||||||
HEADER_SEARCH_PATHS = (
|
HEADER_SEARCH_PATHS = (
|
||||||
"$(SRCROOT)/../Classes/protobuf-lite",
|
"$(SRCROOT)/../Classes/protobuf-lite",
|
||||||
"$(SRCROOT)/../Classes",
|
"$(SRCROOT)/../Classes",
|
||||||
|
@ -918,9 +916,7 @@
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||||
GCC_PREFIX_HEADER = ios/Prefix.pch;
|
GCC_PREFIX_HEADER = ios/Prefix.pch;
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
|
||||||
"$(inherited)",
|
|
||||||
);
|
|
||||||
HEADER_SEARCH_PATHS = (
|
HEADER_SEARCH_PATHS = (
|
||||||
"$(SRCROOT)/../Classes/protobuf-lite",
|
"$(SRCROOT)/../Classes/protobuf-lite",
|
||||||
"$(SRCROOT)/../Classes",
|
"$(SRCROOT)/../Classes",
|
||||||
|
|
Loading…
Reference in New Issue