forked from tesseract-ocr/tesseract
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge conflict: going with Ray's version
- Loading branch information
Showing
139 changed files
with
7,146 additions
and
6,431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!-- | ||
This file is needed by the android_native_library rule to determine the | ||
project directory for ndk-build. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
EXTRA_DIST = AndroidManifest.xml jni/Android.mk jni/Application.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
include $(CLEAR_VARS) | ||
|
||
LOCAL_MODULE := tesseract-$(APP_ABI) | ||
|
||
LOCAL_STATIC_LIBRARIES := \ | ||
mobile_base \ | ||
leptonica-$(APP_ABI) | ||
|
||
LOCAL_C_INCLUDES := $(APP_C_INCLUDES) | ||
|
||
LOCAL_C_INCLUDES += \ | ||
$(LOCAL_PATH)/../../api \ | ||
$(LOCAL_PATH)/../../ccmain\ | ||
$(LOCAL_PATH)/../../ccstruct\ | ||
$(LOCAL_PATH)/../../ccutil\ | ||
$(LOCAL_PATH)/../../classify\ | ||
$(LOCAL_PATH)/../../cutil\ | ||
$(LOCAL_PATH)/../../dict\ | ||
$(LOCAL_PATH)/../../image\ | ||
$(LOCAL_PATH)/../../textord\ | ||
$(LOCAL_PATH)/../../third_party\ | ||
$(LOCAL_PATH)/../../wordrec\ | ||
$(LOCAL_PATH)/../../opencl\ | ||
$(LOCAL_PATH)/../../viewer\ | ||
$(LOCAL_PATH)/../../../leptonica/include | ||
|
||
$(info local c includes=$(LOCAL_C_INCLUDES)) | ||
$(info local path=$(LOCAL_PATH)) | ||
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/../../api/*.cpp $(LOCAL_PATH)/../../ccmain/*.cpp $(LOCAL_PATH)/../../ccstruct/*.cpp $(LOCAL_PATH)/../../ccutil/*.cpp $(LOCAL_PATH)/../../classify/*.cpp $(LOCAL_PATH)/../../cutil/*.cpp $(LOCAL_PATH)/../../dict/*.cpp $(LOCAL_PATH)/../../image/*.cpp $(LOCAL_PATH)/../../textord/*.cpp $(LOCAL_PATH)/../../viewer/*.cpp $(LOCAL_PATH)/../../wordrec/*.cpp) | ||
|
||
EXPLICIT_SRC_EXCLUDES := \ | ||
$(LOCAL_PATH)/../../ccmain/cubeclassifier.cpp \ | ||
$(LOCAL_PATH)/../../ccmain/cubeclassifier.h \ | ||
$(LOCAL_PATH)/../../ccmain/cube_control.cpp \ | ||
$(LOCAL_PATH)/../../ccmain/cube_reco_context.cpp \ | ||
$(LOCAL_PATH)/../../ccmain/cube_reco_context.h \ | ||
$(LOCAL_PATH)/../../ccmain/tesseract_cube_combiner.cpp \ | ||
$(LOCAL_PATH)/../../ccmain/tesseract_cube_combiner.h \ | ||
$(LOCAL_PATH)/../../api/pdfrenderer.cpp \ | ||
$(LOCAL_PATH)/../../api/tesseractmain.cpp \ | ||
|
||
LOCAL_SRC_FILES := $(filter-out $(EXPLICIT_SRC_EXCLUDES), $(LOCAL_SRC_FILES)) | ||
|
||
LOCAL_SRC_FILES := $(LOCAL_SRC_FILES:$(LOCAL_PATH)/%=%) | ||
|
||
$(info local src files = $(LOCAL_SRC_FILES)) | ||
|
||
LOCAL_LDLIBS := -ldl -llog -ljnigraphics | ||
LOCAL_CFLAGS := -DANDROID_BUILD -DGRAPHICS_DISABLED | ||
|
||
include $(BUILD_SHARED_LIBRARY) | ||
|
||
$(call import-module,mobile/base) | ||
$(call import-module,mobile/base) | ||
$(call import-module,mobile/util/hash) | ||
$(call import-module,third_party/leptonica/android/jni) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Include common.mk for building google3 native code. | ||
DEPOT_PATH := $(firstword $(subst /google3, ,$(abspath $(call my-dir)))) | ||
ifneq ($(wildcard $(DEPOT_PATH)/google3/mobile/build/common.mk),) | ||
include $(DEPOT_PATH)/google3/mobile/build/common.mk | ||
else | ||
include $(DEPOT_PATH)/READONLY/google3/mobile/build/common.mk | ||
endif | ||
|
||
# Specify the hash namespace that we're using, based on the APP_STL we're using. | ||
APP_CFLAGS += -Werror -DHASH_NAMESPACE=__gnu_cxx -Wno-error=deprecated-register | ||
APP_PLATFORM := android-16 | ||
APP_STL := gnustl_static | ||
NDK_TOOLCHAIN_VERSION := clang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.