• Home
  • Raw
  • Download

Lines Matching +full:cmake +full:- +full:unix

6 Builds must use CMake 3.15 or higher as the build system generator. The
8 (Windows) and Make (Linux and macOS), but CMake supports other build system
13 Builds for Windows are tested with CMake 3.17, and Visual Studio 2019 or newer.
17 To use CMake you must first configure the build. Create a build directory in
18 the root of the `astcenc` checkout, and then run `cmake` inside that directory
28 # x86-64 using a Visual Studio solution
29 cmake -G "Visual Studio 16 2019" -T ClangCL -DCMAKE_INSTALL_PREFIX=..\ ^
30 -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON ..
32 # x86-64 using NMake
33 cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=..\ ^
34 -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON ..
37 A single CMake configure can build multiple binaries for a single target CPU
42 Using the Visual Studio Clang-CL LLVM toolchain (`-T ClangCL`) is optional but
59 Builds for macOS and Linux are tested with CMake 3.17, and clang++ 9.0 or
66 To use CMake you must first configure the build. Create a build directory
67 in the root of the astcenc checkout, and then run `cmake` inside that directory
81 cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ \
82 -DASTCENC_ISA_NEON=ON ..
84 # x86-64
85 cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ \
86 -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON ..
89 cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ ..
92 A single CMake configure can build multiple binaries for a single target CPU
101 build, but single-target binaries can still be built by setting
102 `-DASTCENC_UNIVERSAL_BINARY=OFF` and then manually selecting the specific ISA
114 make install -j16
119 Builds for macOS and Linux are tested with CMake 3.17, and XCode 14.0 or
124 To use CMake you must first configure the build. Create a build directory
125 in the root of the astcenc checkout, and then run `cmake` inside that directory
134 cmake -G Xcode -DCMAKE_INSTALL_PREFIX=../ ..
139 Once you have configured the build you can use CMake to compile the project
143 cmake --build . --config Release
146 cmake --install . --config Release
159 | ---------------- | -------------------------------------------------------- |
164 Note that optimized release builds are compiled with link-time optimization,
169 We support building the core library as a shared object by setting the CMake
170 option `-DASTCENC_SHAREDLIB=ON` at configure time. For macOS build targets the
182 by adding `-DASTCENC_BLOCK_MAX_TEXELS=<texel_count>` to to CMake command line
186 ### Non-invariant builds
189 revision will produce bit-identical results for all compilers and CPU
191 not required you can specify `-DASTCENC_INVARIANCE=OFF` to enable additional
199 development purposes it is possible to build an intrinsic-free build which uses
200 no explicit SIMD acceleration (the compiler may still auto-vectorize).
202 To enable this binary variant add `-DASTCENC_ISA_NONE=ON` to the CMake command
217 To build unit tests add `-DASTCENC_UNITTEST=ON` to the CMake command line when
220 To run unit tests use the CMake `ctest` utility from your build directory after
225 ctest --verbose
231 supports it. To build binaries with ASAN checking enabled add `-DASTCENC_ASAN=ON`
232 to the CMake command line when configuring.
244 ANDROID_ABI=arm64-v8a
251 mkdir -p ${BUILD_DIR}
254 cmake \
255 -DCMAKE_INSTALL_PREFIX=./ \
256 -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
257 -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \
258 -DANDROID_ABI=${ANDROID_ABI} \
259 -DANDROID_ARM_NEON=ON \
260 -DANDROID_PLATFORM=android-21 \
261 -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang \
262 -DANDROID_TOOLCHAIN=clang \
263 -DANDROID_STL=c++_static \
264 -DARCH=aarch64 \
265 -DASTCENC_ISA_NEON=ON \
268 make -j16
274 the current CMake configuration using the `package` build target
276 Configure CMake with:
278 * `-DASTCENC_PACAKGE=<arch>` to set the package architecture/variant name used
282 # Run a build and package build outputs in `./astcenc-<ver>-<os>-<arch>.<fmt>`
284 make package -j16
293 integrated into other projects using CMake. An example of the CMake integration
298 - - -
300 _Copyright © 2019-2023, Arm Limited and contributors. All rights reserved._