Skip to content

Commit

Permalink
Pull in tzcode submodule and add tzdata assets
Browse files Browse the repository at this point in the history
These are used for timezone conversions between POSIX and calander time.

Tzdata is in exactly the same format as HOS to allow loading sysarchives
in the future if needed. See its README for more info.

Details on tzcode can be found in its own repo, there are several
changes done Vs the base release to allow for HOS compat.
  • Loading branch information
bylaws authored and PixelyIon committed Mar 21, 2021
1 parent 63c5420 commit cb9f5f1
Show file tree
Hide file tree
Showing 601 changed files with 618 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@
url = https://github.com/serge-sans-paille/frozen
[submodule "app/libraries/pugixml"]
path = app/libraries/pugixml
url = https://github.com/zeux/pugixml.git
url = https://github.com/zeux/pugixml.git
[submodule "app/libraries/tzcode"]
path = app/libraries/tzcode
url = https://github.com/bylaws/tz
branch = master
3 changes: 2 additions & 1 deletion app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ if (uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE")
endif ()

add_subdirectory("libraries/fmt")
add_subdirectory("libraries/tzcode")

add_subdirectory("libraries/oboe")
include_directories("libraries/oboe/include")
Expand Down Expand Up @@ -172,5 +173,5 @@ add_library(skyline SHARED
${source_DIR}/skyline/services/prepo/IPrepoService.cpp
)
# target_precompile_headers(skyline PRIVATE ${source_DIR}/skyline/common.h) # PCH will currently break Intellisense
target_link_libraries(skyline vulkan android fmt lz4_static oboe mbedtls::mbedcrypto)
target_link_libraries(skyline vulkan android fmt lz4_static tzcode oboe mbedtls::mbedcrypto)
target_compile_options(skyline PRIVATE -Wall -Wno-unknown-attributes -Wno-c++20-extensions -Wno-c++17-extensions -Wno-c99-designator -Wno-reorder -Wno-missing-braces -Wno-unused-variable -Wno-unused-private-field)
4 changes: 4 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ android {
path "CMakeLists.txt"
}
}

aaptOptions {
ignoreAssetsPattern "*.md"
}
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions app/libraries/tzcode
Submodule tzcode added at f63831
11 changes: 11 additions & 0 deletions app/src/main/assets/tzdata/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## TzData prebuilts in HOS format

Based off tzdb 2021a

Generate as normal then
```
rm *.tab
rm leapseconds
find -type f | sed 's/\.\///g' | grep -v '\.' | sort > ../binaryList.txt
```
Loading

0 comments on commit cb9f5f1

Please sign in to comment.