194 Commits

Author SHA1 Message Date
FeRD (Frank Dana)
21815fe48a FindRESVG: Modernize with targets 2020-01-08 17:10:52 -05:00
Jonathan Thomas
4e5ba4d638 Updating CMakeList.txt requirement for OpenShotAudio 0.1.9. This should work now, since we've updated the versions on develop. 2020-01-07 16:46:33 -06:00
Jonathan Thomas
e1b21c37f0 Reverting CMakeList.txt OpenShotAudio required version, because it's crashing Travis due to the dependency on libopenshot PPA (which only has the develop version number). Need to think about this more. 2020-01-07 14:23:05 -06:00
Jonathan Thomas
606a851c59 Updating required OpenShotAudio version in CmakeLists.txt 2020-01-06 17:27:33 -06:00
Jonathan Thomas
4cf322d21a Merge pull request #397 from ferdnyc/frame-copy
Frame: Copy has_audio_data correctly in DeepCopy
2020-01-02 17:45:32 -06:00
FeRD (Frank Dana)
f8d715ce76 tests: Don't use REQUIRE in unit tests
It's not supported in the older UnitTest++ version still in use on
Ubuntu Xenial.
2019-12-28 15:50:37 -05:00
FeRD (Frank Dana)
b1aff667e5 tests: Start Frame_Tests.cpp 2019-12-28 15:12:46 -05:00
FeRD (Frank Dana)
dc217a9bdf tests: Cast container.size() to int for comparison 2019-12-28 09:49:24 -05:00
Daniel Jour
89479bb01a Keyframe tests: Add test about large segment, including performance
This new test makes sure that a large segment is handled correctly and
also with reasonable performance.  The timeout of 10ms is still
relatively slow (on a mid-class laptop it takes 0.001ms currently) but
the test shouldn't fail when e.g. the build machine is under (mild to
heavy) load.
2019-12-06 01:35:31 +01:00
Daniel Jour
504fd0e3fa KeyFrame_Tests.cpp: Correct usage for CHECK_EQUAL
It's CHECK_EQUAL(expected, actual), not the other way around!
2019-11-24 21:12:33 +01:00
Daniel Jour
86c1df211a Update Keyframe test curve values; new curves are smoother
The curves generated by the new code are much smoother than the old
curves and align much better with what (at least gnuplot) says are the
"correct curves".  Some values therefore needed updating.
2019-11-24 21:00:37 +01:00
Daniel Jour
bd82403969 KeyFrame_Tests: Additional tests to correctly capture old behaviour 2019-11-22 22:34:22 +01:00
Daniel Jour
504ea0c1ff Make Keyframe::Values and Keyframe::Points vectors private
The Values vector should only be accessed from the outside through the
GetValue() function.  The Points vector should only be accessed using
the AddPoint(), RemovePoint(), .. functions.

This helps maintain internal invariants (e.g. keeping Points sorted)
and allows for future removal / lazy evaluation of Values.

The size() of the vectors had been accessed from various parts of the
code; the GetLength() (for Values) and GetCount() (for Points) member
functions provide access to this information and are already part of
the public API.
2019-11-19 23:43:28 +01:00
FeRD (Frank Dana)
750677c0c5 CMake: Manage sources and includes better
- Switch to AUTOMOC for Qt classes
- Eliminate globbing of source subdirs
- Call `include_directories()` in top-level CMakeLists
- Make header files PUBLIC library sources
- Make other sources PRIVATE
2019-11-04 03:59:34 -05:00
FeRD (Frank Dana)
dad3cad621 CMake: Switch to targets for Qt modules 2019-11-04 03:31:16 -05:00
Frank Dana
5c40094c08 Merge branch 'develop' into zmq-targets 2019-11-01 14:42:08 -04:00
Frank Dana
04724cfcd7 Merge branch 'develop' into zmq-targets 2019-10-30 05:01:24 -04:00
Frank Dana
2560409bb5 Merge branch 'develop' into system-jsoncpp 2019-10-30 03:24:32 -04:00
Jonathan Thomas
2a1fe80ee9 Merge pull request #352 from ferdnyc/clang-iwyu-fixes
Add fixes for Clang/IWYU building, correct juce:: namespacing
2019-10-29 14:03:57 -05:00
Jonathan Thomas
a3eb92e623 Merge pull request #340 from OpenShot/ffmpeg-targets
FFmpeg: Create and use targets in CMake build
2019-10-29 13:43:06 -05:00
FeRD (Frank Dana)
b6da6b9659 add DONT_SET_USING_JUCE_NAMESPACE to tests 2019-10-27 03:54:36 -04:00
FeRD (Frank Dana)
a1034046a2 ZeroMQ: Use IMPORTED targets
- Adopt FindZeroMQ.cmake from cppzmq, and use its `libzmq` target
- Also use `cppzmq` target, if created
2019-10-26 07:24:28 -04:00
FeRD (Frank Dana)
645946458b DISABLE_TESTS covers entire tests/ dir 2019-10-26 07:22:01 -04:00
Frank Dana
13e68c368e Merge branch 'develop' into ffmpeg-targets 2019-10-25 02:03:10 -04:00
Frank Dana
d99bba83b4 Merge branch 'develop' into system-jsoncpp 2019-10-22 20:33:39 -04:00