Skip to content

Commit

Permalink
iOS build: make command-lines copyable
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain BOUQUEAU authored and Romain BOUQUEAU committed Aug 25, 2024
1 parent b988efc commit 28265c5
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions docs/Build/build/GPAC-Build-Guide-for-iOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,33 @@ For the following, we'll call the working directory `<GPAC_ROOT_DIR>`.

```bash
##get src
<GPAC_ROOT_DIR>$ git clone https://github.com/gpac/gpac.git gpac_public
git clone https://github.com/gpac/gpac.git gpac_public

##get deps
<GPAC_ROOT_DIR>$ git clone https://github.com/gpac/deps_ios
<GPAC_ROOT_DIR>$ cd deps_ios
<GPAC_ROOT_DIR>/deps_ios$ git submodule update --init --recursive --force --checkout
git clone https://github.com/gpac/deps_ios
cd deps_ios
git submodule update --init --recursive --force --checkout
```

We need to keep the `gpac_public` for the main repository to have the scripts run smoothly.


## Build dependencies

From the `deps_ios` folder:

```bash
<GPAC_ROOT_DIR>/deps_ios/SDL_iOS$ cd ../build/xcode_ios
<GPAC_ROOT_DIR>/deps_ios/build/xcode_ios$ ./generate_extra_libs.sh
cd build/xcode_ios
./generate_extra_libs.sh
```

## Copy dependencies

Then continuing from the `build/xcode_ios` folder:

```bash
<GPAC_ROOT_DIR>/deps_ios/build/xcode_ios$ cd ../..
<GPAC_ROOT_DIR>/deps_ios$ ./CopyLibs2Public4iOS.sh
cd ../..
./CopyLibs2Public4iOS.sh
```

If all went well, the extra_lib directory of the main repository should now look something like this:
Expand Down

0 comments on commit 28265c5

Please sign in to comment.