diff --git a/cmake/common_functions.cmake b/cmake/common_functions.cmake index d24e26e7..a0eb4ef8 100755 --- a/cmake/common_functions.cmake +++ b/cmake/common_functions.cmake @@ -31,3 +31,6 @@ function(Translate pofile transtopath) COMMENT "Translate strings resource...${PROJECT_BINARY_DIR}" ) endfunction() + +option(JSONCPP_WITH_TESTS "Compile and (for jsoncpp_check) run JsonCpp test executables" OFF) +option(JSONCPP_WITH_POST_BUILD_UNITTEST "Automatically run unit-tests as a post build step" OFF) diff --git a/cmake/options.cmake b/cmake/options.cmake index 5067ca94..06d6431a 100755 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -1,8 +1,8 @@ -option(MINIMAL_SIZE_OPTIMIZED "For IOT/Embedded size optimize" ON) +option(MINIMAL_SIZE_OPTIMIZED "For IOT/Embedded size optimize" OFF) option(BUILD_DOCS "Build documents" OFF) option(BUILD_EXAMPLES "Build examples" OFF) -option(BUILD_TESTS "Build unit tests" OFF) +option(BUILD_CDROID_TESTS "Build unit tests" ON) option(ENABLE_GIF "enable gif encode and decoder" OFF) option(ENABLE_CAIROSVG "enable svg decoder" OFF) diff --git a/src/3rdparty/cairo-1.16.0/src/CMakeLists.txt b/src/3rdparty/cairo-1.16.0/src/CMakeLists.txt index f234a18b..8b9baf0e 100755 --- a/src/3rdparty/cairo-1.16.0/src/CMakeLists.txt +++ b/src/3rdparty/cairo-1.16.0/src/CMakeLists.txt @@ -655,3 +655,6 @@ install(TARGETS cairo_static RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIB install(FILES ${enabled_cairo_headers} DESTINATION include/cairo) install(FILES ../cairo-version.h DESTINATION include/cairo) install(FILES ${PROJECT_BINARY_DIR}/cairo-features.h DESTINATION include/cairo) + +file(COPY ../cairo-version.h ${enabled_cairo_headers} ${PROJECT_BINARY_DIR}/cairo-features.h + DESTINATION ${CMAKE_BINARY_DIR}/include/cairo) diff --git a/src/gui/core/assets.cc b/src/gui/core/assets.cc index c2d759ef..c363c558 100755 --- a/src/gui/core/assets.cc +++ b/src/gui/core/assets.cc @@ -294,8 +294,7 @@ Drawable* Assets::getDrawable(const std::string&fullresid){ if(TextUtils::startWith(resname,"attr")){//for reference resource resname = mTheme.getString(resname.substr(5)); - d=getDrawable(resname); - LOG(DEBUG)<setKeyCharacterMap("qwerty.kcm"); } if(imemethods.size()==0){ - InputMethod*m=new InputMethod("cdroid:xml/qwerty.xml"); + InputMethod*m=new InputMethod("cdroid:values/qwerty.xml"); m->load_dicts("dict_pinyin.dat","userdict.dat"); registeMethod("ChinesePinyin26",m); } diff --git a/src/gui/res/drawable/edit_text_holo_dark.xml b/src/gui/res/drawable/edit_text_holo_dark.xml new file mode 100755 index 00000000..f3a45e76 --- /dev/null +++ b/src/gui/res/drawable/edit_text_holo_dark.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/src/gui/res/drawable/edit_text_holo_light.xml b/src/gui/res/drawable/edit_text_holo_light.xml new file mode 100755 index 00000000..be4f364c --- /dev/null +++ b/src/gui/res/drawable/edit_text_holo_light.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/src/gui/res/values/qwerty.xml b/src/gui/res/values/qwerty.xml index d96a11d9..87347fe2 100755 --- a/src/gui/res/values/qwerty.xml +++ b/src/gui/res/values/qwerty.xml @@ -1,8 +1,8 @@ - diff --git a/src/gui/res/values/styles.xml b/src/gui/res/values/styles.xml index 893e71de..c055f9ea 100755 --- a/src/gui/res/values/styles.xml +++ b/src/gui/res/values/styles.xml @@ -255,9 +255,9 @@ true true true - ?attr/editTextBackground - ?attr/textAppearanceMediumInverse - ?attr/editTextColor + ?cdroid:attr/editTextBackground + ?cdroid:attr/textAppearanceMediumInverse + ?cdroid:attr/editTextColor center_vertical simple normal @@ -266,9 +266,9 @@