Add apple.py, fix some global initialization on iOS, and add some missing bundle-related files.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4524 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
11929e8c68
commit
b3a1f17452
4
Makefile
4
Makefile
@ -661,7 +661,9 @@ out/tildefriends-%.app/tildefriends: out/%/tildefriends out/tildefriends-%.app/I
|
|||||||
|
|
||||||
iossimdebug-app: out/tildefriends-iossimdebug.app/tildefriends
|
iossimdebug-app: out/tildefriends-iossimdebug.app/tildefriends
|
||||||
iossimrelease-app: out/tildefriends-iossimrelease.app/tildefriends
|
iossimrelease-app: out/tildefriends-iossimrelease.app/tildefriends
|
||||||
.PHONY: iossimdebug-app iossimrelease-app
|
iosdebug-app: out/tildefriends-iosdebug.app/tildefriends
|
||||||
|
iosrelease-app: out/tildefriends-iosrelease.app/tildefriends
|
||||||
|
.PHONY: iossimdebug-app iossimrelease-app iosdebug-app iosrelease-app
|
||||||
|
|
||||||
iossimdebuggo: out/tildefriends-iossimdebug.app/tildefriends
|
iossimdebuggo: out/tildefriends-iossimdebug.app/tildefriends
|
||||||
xcrun simctl install booted out/tildefriends-iossimdebug.app/
|
xcrun simctl install booted out/tildefriends-iossimdebug.app/
|
||||||
|
12
src/ios/Entitlements.plist
Normal file
12
src/ios/Entitlements.plist
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>application-identifier</key>
|
||||||
|
<string>EDVXQ27EB5.com.unprompted.tildefriends</string>
|
||||||
|
<key>com.apple.developer.team-identifier</key>
|
||||||
|
<string>EDVXQ27EB5</string>
|
||||||
|
<key>get-task-allow</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
25
src/ios/ResourceRules.plist
Normal file
25
src/ios/ResourceRules.plist
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>rules</key>
|
||||||
|
<dict>
|
||||||
|
<key>.*</key>
|
||||||
|
<true/>
|
||||||
|
<key>Info.plist</key>
|
||||||
|
<dict>
|
||||||
|
<key>omit</key>
|
||||||
|
<true/>
|
||||||
|
<key>weight</key>
|
||||||
|
<real>10</real>
|
||||||
|
</dict>
|
||||||
|
<key>ResourceRules.plist</key>
|
||||||
|
<dict>
|
||||||
|
<key>omit</key>
|
||||||
|
<true/>
|
||||||
|
<key>weight</key>
|
||||||
|
<real>100</real>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
10
src/main.c
10
src/main.c
@ -568,6 +568,7 @@ static int _tf_command_usage(const char* file, int argc, char* argv[])
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void _backtrace_error(void* data, const char* message, int errnum)
|
static void _backtrace_error(void* data, const char* message, int errnum)
|
||||||
{
|
{
|
||||||
@ -582,7 +583,7 @@ static void _error_handler(int sig)
|
|||||||
_exit(1);
|
_exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
static void _startup(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
bool tracking = false;
|
bool tracking = false;
|
||||||
for (int i = 1; i < argc; i++)
|
for (int i = 1; i < argc; i++)
|
||||||
@ -635,6 +636,12 @@ int main(int argc, char* argv[])
|
|||||||
perror("signal");
|
perror("signal");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !TARGET_OS_IPHONE
|
||||||
|
int main(int argc, char* argv[])
|
||||||
|
{
|
||||||
|
_startup(argc, argv);
|
||||||
|
|
||||||
int result = 0;
|
int result = 0;
|
||||||
if (argc >= 2)
|
if (argc >= 2)
|
||||||
@ -662,6 +669,7 @@ done:
|
|||||||
|
|
||||||
void tf_run_thread_start(const char* zip_path)
|
void tf_run_thread_start(const char* zip_path)
|
||||||
{
|
{
|
||||||
|
_startup(0, NULL);
|
||||||
uv_thread_t* thread = tf_malloc(sizeof(uv_thread_t));
|
uv_thread_t* thread = tf_malloc(sizeof(uv_thread_t));
|
||||||
tf_run_thread_data_t* data = tf_malloc(sizeof(tf_run_thread_data_t));
|
tf_run_thread_data_t* data = tf_malloc(sizeof(tf_run_thread_data_t));
|
||||||
tf_run_args_t args =
|
tf_run_args_t args =
|
||||||
|
1621
tools/apple.py
Normal file
1621
tools/apple.py
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user