From b90fa73948a2a5c709ae337b1805fe6d9b303c33 Mon Sep 17 00:00:00 2001 From: 2youyouo2 <501251991@qq.com> Date: Wed, 27 Jul 2016 16:26:10 +0800 Subject: [PATCH] upload missed files --- native/.gitignore | 1 - .../runtime-src/proj.ios_mac/mac/main.cpp | 34 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100755 native/templates/js-template-binary/frameworks/runtime-src/proj.ios_mac/mac/main.cpp diff --git a/native/.gitignore b/native/.gitignore index 98f29c5afb..caba3c150f 100644 --- a/native/.gitignore +++ b/native/.gitignore @@ -150,7 +150,6 @@ tests/cpp-tests/Resources/audio !/tools/framework-compile/bin/ # generated by framework-compile -/templates/*-template-binary/ /prebuilt/ /*/prebuilt-mk/Android.mk /*/*/prebuilt-mk/Android.mk diff --git a/native/templates/js-template-binary/frameworks/runtime-src/proj.ios_mac/mac/main.cpp b/native/templates/js-template-binary/frameworks/runtime-src/proj.ios_mac/mac/main.cpp new file mode 100755 index 0000000000..96f027e13d --- /dev/null +++ b/native/templates/js-template-binary/frameworks/runtime-src/proj.ios_mac/mac/main.cpp @@ -0,0 +1,34 @@ +/**************************************************************************** + Copyright (c) 2010 cocos2d-x.org + + http://www.cocos2d-x.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +#include "AppDelegate.h" +#include "cocos2d.h" + +USING_NS_CC; + +int main(int argc, char *argv[]) +{ + AppDelegate app; + return Application::getInstance()->run(); +}