Skip to content

Commit

Permalink
Clean up source files
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Nov 18, 2024
1 parent cffc893 commit e854895
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,6 @@ android/gradle/
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
!.yarn/versions

android/c_sources
5 changes: 0 additions & 5 deletions android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,7 @@ find_library(LOG_LIB log)

# Add user defined files
if (USER_DEFINED_SOURCE_FILES)
# string(REPLACE ";" "\n" user_source_files "${USER_DEFINED_SOURCE_FILES}")
message(WARNING "User source files: ${user_source_files}")
message(WARNING "TOKENIZERS_HEADER_PATH ${USER_DEFINED_TOKENIZERS_HEADER_PATH}")

target_sources(${PACKAGE_NAME} PRIVATE ${USER_DEFINED_SOURCE_FILES})
# add_definitions("-DTOKENIZER_LIST=${USER_DEFINED_TOKENIZER_INIT_STRINGS}")

add_definitions("-DTOKENIZERS_HEADER_PATH=\"${USER_DEFINED_TOKENIZERS_HEADER_PATH}\"")
endif()
Expand Down
3 changes: 0 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ android {
}
sourceFiles = fileTree(dir: destDir, include: ["**/*.cpp", "**/*.h"]).files.join(";")
tokenizersHeaderPath = "../c_sources/tokenizers.h"
println("tokenizers header path $tokenizersHeaderPath")

}

cppFlags "-O2", "-fexceptions", "-DONANDROID"
Expand All @@ -190,7 +188,6 @@ android {
"-DUSE_LIBSQL=${useLibsql ? 1 : 0}",
"-DUSE_SQLITE_VEC=${useSqliteVec ? 1 : 0}",
"-DUSER_DEFINED_SOURCE_FILES=${sourceFiles}",
// "-DUSER_DEFINED_TOKENIZER_INIT_STRINGS='${tokenizerInitStrings}'",
"-DUSER_DEFINED_TOKENIZERS_HEADER_PATH='${tokenizersHeaderPath}'"
}
}
Expand Down
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PODS:
- hermes-engine (0.76.1):
- hermes-engine/Pre-built (= 0.76.1)
- hermes-engine/Pre-built (0.76.1)
- op-sqlite (10.0.0-tokenizers-beta8):
- op-sqlite (10.0.0-tokenizers-beta9):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -1785,7 +1785,7 @@ SPEC CHECKSUMS:
GCDWebServer: 2c156a56c8226e2d5c0c3f208a3621ccffbe3ce4
glog: 08b301085f15bcbb6ff8632a8ebaf239aae04e6a
hermes-engine: 46f1ffbf0297f4298862068dd4c274d4ac17a1fd
op-sqlite: d694c00d61984c2f7245b915e17d05187533ec6e
op-sqlite: c57328a22832c1f6093c01f13281b66cf5ee49d5
RCT-Folly: bf5c0376ffe4dd2cf438dcf86db385df9fdce648
RCTDeprecation: fde92935b3caa6cb65cbff9fbb7d3a9867ffb259
RCTRequired: 75c6cee42d21c1530a6f204ba32ff57335d19007
Expand Down

0 comments on commit e854895

Please sign in to comment.