Commit Graph
18 Commits
Author SHA1 Message Date
Michael RennieandBaldur Karlsson 149e83ba76 Set same default API level for ANDROID_ABI=armeabi-v7a as for arm64-v8a.
Also switch to 32bit build by default, as almost all content is 32bit.
2016-10-07 15:10:42 +02:00
baldurk 89dc093e84 Define _RELEASE macro on Release CMake targets 2016-09-28 13:54:55 +02:00
baldurk 711860b338 Add sensible defaults for Android to reduce clutter of command line
* The windows command will now be:
  cmake -G "MinGW Makefiles" -DBUILD_ANDROID=On <...>
* The linux command will just be:
  cmake -DBUILD_ANDROID=On <...>
* With the rest of the parameters specified as normal. An optional
  -DANDROID_ABI can be passed to specify the ABI
2016-09-27 14:29:40 +02:00
baldurk c968ab673c Allow cross-compiles on windows via CMake
* We only want to block windows-for-windows builds with CMake, not cross
  compiles for e.g. android from windows.
* We move the fatal error later in the file after the cross-compilation
  has been initialised so we can check if we're really still WIN32.
* This means the early-out on windows is a little late (after some
  autodetection has happened) but that's not the end of the world.
2016-09-27 13:45:32 +02:00
baldurk 90604c6d9c Print custom lines of API support on the version string of renderdoccmd
* An easy way to check what support is compiled into this binary.
2016-08-25 21:07:40 +02:00
baldurk 872fbe017b Make xlib and xcb support optional (but default on) on linux
* Also allow disabling GL a little better by removing the dependency in
  renderdoccmd.
* Disabling them now completely removes all xcb and xlib build
  dependencies. The resulting library/executable is only useful in
  limited situations - e.g. replaying vulkan remotely which doesn't need
  any window system interaction. Or capturing vulkan as well with the
  KHR_display WSI extension which doesn't need any built-time includes
  or libs.
2016-08-23 16:25:21 +02:00
baldurk 09ecb3a6b3 Don't use -Werror in release mode on non-windows builds 2016-08-15 19:56:01 +02:00
Hubert Jarosz 05bc395fd6 move get_git_hash definition to main CMakeLists.txt 2016-08-10 13:00:59 +02:00
baldurk d6d36f6383 Add -Wno-unused-result to get Release builds compiling. Refs #274 2016-08-04 18:54:24 +02:00
baldurk 733ed8db96 Enable -fstrict-aliasing always, since it enables in release. Refs #274 2016-08-04 18:54:24 +02:00
baldurk c1f66de413 Add early OS X compiling support from @Zorro666 - still non-functional!
* Build with cmake -DENABLE_VULKAN=OFF -DENABLE_QRENDERDOC=OFF
2016-05-31 12:05:45 +02:00
baldurk 2d6173d514 Remove -Wno-error from android build
* There's one trivial warning in glslang that will be fixed shortly
2016-05-14 20:55:17 +02:00
baldurk 863dc1d259 Split 'linux' os-specific code into 'posix' and then 'linux'/'android'
* And eventually probably 'apple' as well.
2016-05-14 01:53:51 +02:00
Chia-I Wuandbaldurk 3503f8a9c6 Android: Get RenderDoc compiling 2016-05-14 01:53:43 +02:00
Michael Vance 8b1794456d Switch RENDERDOC_PLATFORM to RENDERDOC_PLATFORM_<PLAT>.
Notes
======
- With no clean way to do string comparisons in the C preprocessor, have a define per-platform. This avoids the clever string concatenation for determining the OS-specic bits, and allows SN-DBS to distribute builds without custom rewrite rules.
- Fix up instances of WIN32, etc., in non-3rdparty sources to refer to this.
- Move the per-platform specific bits into their own subdirs.
2016-04-15 13:59:59 -04:00
Chia-I WuandChia-I Wu 64513c9252 Turn on -Wextra
Add -Wextra and silence all warnings with -Wno-*.  Among them, we probably
want to fix

        -Wunused-variable
        -Wunused-but-set-variable
        -Wtype-limits

at some point.
2016-03-12 06:29:31 +08:00
Chia-I Wu cb9449230a Update CMake rules
* Suggest users to use VS on Windows
* Add a top-level wrapper Makefile and disallow in-source builds
* Support clang
* Centralize compiler flags
* Remove all occurrences of "if(WIN32)..."
* Make qrenderdoc an external project
2016-03-11 10:23:56 +08:00
Chia-I Wu 73a2e96c93 Use CMake on Linux
The suggested way to build RenderDoc on Linux is now

  $ mkdir build
  $ cd build
  $ cmake ..
  $ make

It will print an error when used on other platforms.
2016-03-10 10:29:52 +08:00