Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
404e6356
Commit
404e6356
authored
Nov 12, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Android build
parent
9d7a60a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
13 deletions
+9
-13
Android.mk
android_build/jni/Android.mk
+0
-12
AndroidBuild.md
docs/AndroidBuild.md
+1
-1
Android.mk
jni/Android.mk
+8
-0
No files found.
android_build/jni/Android.mk
deleted
100644 → 0
View file @
9d7a60a6
LOCAL_PATH := $(call my-dir)/../..
include $(CLEAR_VARS)
# To build with lua support, uncomment two lines below:
#LUA_SOURCES := build/lua_5.2.1.c build/sqlite3.c build/lsqlite3.c
#LUA_FLAGS := -I$(LOCAL_PATH)/build -DTHREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DUSE_LUA -DUSE_LUA_SQLITE3 -DLUA_COMPAT_ALL -D"getlocaledecpoint() ='.'"
LOCAL_CFLAGS := -std=c99 -O2 -W -Wall -pthread -pipe $(LUA_FLAGS) $(COPT)
LOCAL_MODULE := mongoose
LOCAL_SRC_FILES := examples/server.c mongoose.c $(LUA_SOURCES)
include $(BUILD_EXECUTABLE)
docs/AndroidBuild.md
View file @
404e6356
...
...
@@ -7,7 +7,7 @@ Note : You dont need root access to run mongoose on Android.
-
Clone Mongoose Git repo
-
Download the Android NDK from
[
http://developer.android.com/tools/sdk/ndk/index.html
](
http://developer.android.com/tools/sdk/ndk/index.html
)
-
Run
`/path-to-ndk/ndk-build -C /path
-to-mongoose/examples
`
-
Run
`/path-to-ndk/ndk-build -C /path
/to/mongoose
`
That should generate mongoose/lib/armeabi/mongoose
-
Using the adb tool (you need to have Android SDK installed for that),
push the generated mongoose binary to
`/data/local`
folder on device.
...
...
jni/Android.mk
0 → 100644
View file @
404e6356
LOCAL_PATH := $(call my-dir)/..
include $(CLEAR_VARS)
LOCAL_CFLAGS := -std=c99 -O2 -W -Wall -pthread -pipe $(COPT)
LOCAL_MODULE := mongoose
LOCAL_SRC_FILES := examples/web_server/web_server.c mongoose.c
include $(BUILD_EXECUTABLE)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment