37 Commits

Author SHA1 Message Date
Andreas Atteneder
a0146686a0 fix: Linking dracodec_unity macOS bundle works again (got broken via #676) 2021-02-05 12:21:05 -08:00
Tom Finegan
5ad118d7d2 draco: Support multiple link flags in older CMakes
Stringify the flag list and apply the flags in CMakes before
v3.13.
2021-02-04 15:42:34 -08:00
Tom Finegan
00134c59b0 draco: Restore sanitizer support. 2021-02-04 15:42:34 -08:00
Quim Muntal
253059c639
Support building mingw static and dynamic at the same time (#677)
Restrict the behavior disallowing the build of both libraries to MSVC. The mingw CMake generators
handle the situation properly:

- Shared library suffix: .dll
- Import library suffix: .a.dll
- Static library suffix: .a
2021-02-04 12:13:18 -08:00
RichardTea
3ea441ec1c
Set VERSION and SOVERSION for all targets as appropriate (#676)
Set VERSION property for non-static library targets and executable targets, and set
SOVERSION for non-MSVC targets.
2021-02-03 13:57:22 -08:00
Tom Finegan
e812c9e195
Fix typo in CMake macro draco_add_executable()
$lib_NAME -> $exe_NAME.
2020-12-17 12:50:16 -08:00
Tom Finegan
2e67b39c31 Draco v1.4.1 2020-12-08 11:55:42 -08:00
Tom Finegan
dd6ef6ff02
draco: Fix empty list handling in older CMakes.
Older CMake releases don't support empty list variables with list(FILTER).
2020-12-01 14:37:24 -08:00
Tom Finegan
8a979f79a5 Draco v1.4.0 2020-12-01 13:01:33 -08:00
Tom Finegan
dec23f5ac6
Merge pull request #602 from PsycoTodd/iphonesimulator
add toolchain files for ios simulator.
2020-05-05 12:32:48 -07:00
PsychoTodd
cfaf1bebfe add toolchain files for ios simulator. 2020-05-01 20:44:58 -07:00
Robert Buchholz
a3c2d121a4 Update CMake-generated dummy sources only when their content changes
- this prevents unnecessary rebuilds after each CMake run
2020-03-09 13:45:44 +01:00
Frank Galligan
571d547d36 Update to version 1.3.6 2020-03-03 10:35:26 -08:00
Tom Finegan
5db6df1985
draco: formatting fixes in draco_features.cmake.
Just line wrapping stuff.
2019-09-25 14:28:23 -07:00
Robert Buchholz
d7f6ff38b6 Update CMake-generated headers only when their content changes
- this prevents unnecessary decode.cc rebuilds after each CMake run
2019-09-25 11:27:57 +02:00
Tom Finegan
fdaa47cd23 draco cmake: Improve Android NDK toolchain support and fix a bug.
- Move common NDK settings into cmake/toolchains/android-ndk-common.cmake.
- Fix bug in set_variable_if_unset(). Was ignoring variables set via
  CMake's command line.

Fixes #475.
2019-06-21 10:50:00 -07:00
Tom Finegan
5a999117b1 draco cmake: Run cmake-format on all CMake files. 2019-06-21 10:47:49 -07:00
Igor Vytyaz
8833cf878e Updated snapshot to 1.3.5
* Added option to build Draco for Universal Scene Description
* Code cleanup
* Bug fixes
2019-01-31 10:18:06 -08:00
Ondrej Stava
79774fec74 Updated snapshot to 1.3.2
- Bug fixes
2018-06-05 16:09:30 -07:00
Tom Finegan
fde45e52f2 Require Android NDK path in environment.
Updates require_var() and set_variable_if_unset() to use the
environment values for named variables.

CMake processes toolchain files multiple times, and on some
processing runs cache variables are not available. Environment
variables are always available.
2018-05-14 11:42:25 -07:00
Tom Finegan
16ca12ccd6 Improve Android CMake toolchains.
- Use the NDK directly instead of requiring standalone toolchains.
- Add x86 and x86_64 toolchains.
2018-05-08 09:19:20 -07:00
Tom Finegan
2c08fdb93c Add Android arm toolchains files. 2018-04-26 13:47:33 -07:00
Tom Finegan
0af6f725ba Add arm linux cmake toolchains. 2018-04-26 08:37:31 -07:00
Ondrej Stava
02272a65c7 Fixed cmake build 2018-04-18 16:26:49 -07:00
Tom Finegan
606fbb01bb Remove AOM cruft from arm ios toolchains.
Draco does not need the extra flags, and does not care
about AOM's internal configuration variables.
2018-02-09 10:05:08 -08:00
Tom Finegan
d20fb916c7 Add arm ios toolchains. 2018-02-09 10:01:27 -08:00
Tom Finegan
227c7be1af Additional CMake flag handling improvements.
- Stop forcing AS/C/CXX/LINKER flags into the cache.
- Don't cache internal build system variables.
- Fix usages of PARENT_SCOPE rendered incorrect by previous
  patch.
- Fix usage of local variables within if() statements in macros;
  functions appear to allow for omission of ${} around vars in
  simple boolean checks. Macros apparently require ${} for all
  usages of if().
2017-12-23 09:27:47 -08:00
Tom Finegan
db609de80f Improve CMake C/CXX/AS flag handling.
Convert the flag controlling functions to macros and omit the
FORCE argument from all the set() calls. The use of FORCE was
mainly intended to set the variable in all scopes, but using
macros instead of functions is a much cleaner method of achieving
the same goal.
2017-12-22 16:37:43 -08:00
Frank Galligan
c61ddb67f3 Update Draco snapshot.
-Increase version to 1.0.1
-Update Javascript decode timing example
-Fix async creation of DracoDecoderModule
-fixes wasm parallel decoding
-Introduce base class for geometric normal predictor
-Added integer attribute interface to JavaScript decoder
-Move loading Draco decoder into three.js Draco loader
-Add compiler launcher support to CMake build
-Add sanitizer support via CMake build
-Check we are not reading past the end of the attribute buffer
2017-08-21 16:04:57 -07:00
Frank Galligan
da71b48359 Add more CMake helper scripts plus more CMake updates.
- Disallow in-tree CMake runs.
- Adds back CONTRIBUTING.md.

This fixes #130 and hopefully addresses #163.
2017-08-03 16:13:08 -07:00
Ondrej Stava
d0f313d292 Silence unknown link language warnings.
Fixes https://github.com/google/draco/issues/162
2017-08-02 15:17:59 -07:00
Ondrej Stava
90577b3f08 Added missing CMake file. 2017-08-02 12:24:29 -07:00
Ondrej Stava
81d73904ac Draco updated to 1.0.0 version
The latest version of Draco brings many new enhancements to improve the
development experience:
* Stable API release
* Support for npm Javascript package management
* Javascript based encoder
* Generalized metadata for meshes and point clouds
  * Now supporting material properties included along with encoded file
* Improved compression rates:
  * 15% better compression on smaller models
  * 40% better compression of normals
* Performance improvements (~10% faster encoding, decoding)
* Reduced GPU memory usage:
  * Option to store decoded quantized attributes
  * Support for triangle strip connectivity on decoded meshes
* iOS 9 Javascript decoder
* Bitstream specification now available
2017-07-28 14:25:10 -07:00
Frank Galligan
931a1de144 Fix Javascript and Windows builds.
1. Updating our javascript decoders reflecting latest changes.
2. Fix windows testing.
2017-02-17 10:02:19 -08:00
Frank Galligan
3682ca2801 Make decoder more robust, build and Javascript fixes
1. Add 'use strict'to example Javascript.
2. Small fixes to README.md.
3. Fix Draco compiler flag tests.
4. Fixed issue when number of quantized bits was to large.
5. Changed StartDecoding to return a value.
6. Check that num of attributes are not less than 0.
7. Check that the number of attributes is a valid value.
2017-01-23 14:55:45 -08:00
Frank Galligan
79185b7058 Update snapshot to 0.9.1 2017-01-12 16:50:49 -08:00
Frank Galligan
3c8f789d6a Version 0.9.0 snapshot 2016-12-12 16:39:06 -08:00