Skip to content

Commit e58c4e3

Browse files
committed
setup conan build
1 parent ddc74c9 commit e58c4e3

15 files changed

Lines changed: 71 additions & 348 deletions

.github/workflows/ios_main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
run: gem install bundler:1.17.3
2727
- name: fastlane
2828
run: bundle install
29+
- name: conan
30+
run: python3 -m ensurepip && pip install conan
2931

3032
- name: run tests
3133
run: bundle exec fastlane tests

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,8 @@ fastlane/test_output
7070
.DS_Store
7171

7272
fastlane/report.xml
73+
74+
conanbuildinfo.*
75+
conaninfo.txt
76+
conan.lock
77+
graph_info.json

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[submodule "OpenDocument.core"]
2-
path = OpenDocument.core
3-
url = https://github.com/andiwand/OpenDocument.core.git
41
[submodule "ios-cmake"]
52
path = ios-cmake
63
url = https://github.com/leetal/ios-cmake.git

OpenDocument.core

Lines changed: 0 additions & 1 deletion
This file was deleted.

OpenDocumentReader.xcodeproj/project.pbxproj

Lines changed: 25 additions & 328 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
It's Android's first OpenOffice Document Reader... for iOS!
33

44
## Setup
5-
1. run "git submodule update --init --recursive"
6-
2. run "pod install"
7-
3. run "bash build-simulator.sh" or "bash build-device.sh"
8-
4. open workspace in Xcode
5+
1. run "pod install"
6+
2. run "bash build-simulator.sh" or "bash build-device.sh"
7+
3. open workspace in Xcode

build-device.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,4 @@
44
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
55
cd $DIR
66

7-
rm -rf build
8-
9-
mkdir build/
10-
cd build/
11-
cmake -G "Xcode" -DCMAKE_TOOLCHAIN_FILE=../ios-cmake/ios.toolchain.cmake -DIOS_DEPLOYMENT_TARGET=14.0 -DPLATFORM=OS64COMBINED ../
12-
cd ../
7+
conan install . --profile ios --build missing

build-simulator.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,4 @@
44
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
55
cd $DIR
66

7-
rm -rf build
8-
9-
mkdir build/
10-
cd build/
11-
cmake -G "Xcode" -DGIT_EXECUTABLE=/usr/bin/git -DCMAKE_TOOLCHAIN_FILE=../ios-cmake/ios.toolchain.cmake -DIOS_DEPLOYMENT_TARGET=14.0 -DPLATFORM=OS64COMBINED ../ -DDISABLE_ASM=ON
12-
cd ../
7+
conan install . --profile ios-simulator --build missing

conanfile.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[requires]
2+
odr.core/1.0.0@
3+
4+
[generators]
5+
xcode
6+

debug-lite.xcconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include "Pods/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader.debug lite.xcconfig"
2+
#include "conanbuildinfo.xcconfig"

0 commit comments

Comments
 (0)