File tree Expand file tree Collapse file tree 5 files changed +80
-0
lines changed Expand file tree Collapse file tree 5 files changed +80
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ include(hunter_user_error)
1717
1818hunter_default_version(ARM_NEON_2_x86_SSE VERSION 1.0.0-p0)
1919hunter_default_version(AllTheFlopsThreads VERSION 0.1-p0)
20+ hunter_default_version(Alut VERSION 1.1.0-469287b-p0)
2021hunter_default_version(Android-Apk VERSION 1.1.14)
2122hunter_default_version(Android-Build -Tools VERSION 27.0.3)
2223hunter_default_version(Android-Google-Repository VERSION 58)
Original file line number Diff line number Diff line change 1+ include (hunter_add_version)
2+ include (hunter_cacheable)
3+ include (hunter_cmake_args)
4+ include (hunter_download)
5+ include (hunter_pick_scheme)
6+
7+ hunter_add_version(
8+ PACKAGE_NAME
9+ Alut
10+ VERSION
11+ 1.1.0-469287b-p0
12+ URL
13+ "https://github.com/cpp-pm/freealut/archive/1.1.0-469287b-p0.tar.gz"
14+ SHA1
15+ c20f2c026bb48d9e6ade42051c998797b0b723b6
16+ )
17+
18+ hunter_cmake_args(
19+ Alut
20+ CMAKE_ARGS
21+ BUILD_EXAMPLES=OFF
22+ BUILD_TESTS=OFF
23+ )
24+
25+ hunter_pick_scheme(DEFAULT url_sha1_cmake)
26+ hunter_cacheable(Alut)
27+ hunter_download(PACKAGE_NAME Alut)
Original file line number Diff line number Diff line change 1+ .. spelling ::
2+
3+ Alut
4+
5+ .. index ::
6+ single: media ; Alut
7+
8+ .. _pkg.Alut :
9+
10+ Alut
11+ ====
12+
13+ - `Official <https://github.com/vancegroup/freealut >`__
14+ - `Hunterized <https://github.com/cpp-pm/freealut >`__
15+ - `Example <https://github.com/cpp-pm/hunter/blob/master/examples/Alut/CMakeLists.txt >`__
16+ - Added by `drodin <https://github.com/drodin >`__ (`pr-742 <https://github.com/cpp-pm/hunter/pull/742 >`__)
17+
18+ .. literalinclude :: /../examples/Alut/CMakeLists.txt
19+ :language: cmake
20+ :start-after: # DOCUMENTATION_START {
21+ :end-before: # DOCUMENTATION_END }
Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.5)
2+
3+ # Emulate HunterGate:
4+ # * https://github.com/hunter-packages/gate
5+ include ("../common.cmake" )
6+
7+ project (download-Alut)
8+
9+ # DOCUMENTATION_START {
10+ hunter_add_package(Alut)
11+ find_package (Alut CONFIG REQUIRED)
12+
13+ add_executable (main main.cpp)
14+ target_link_libraries (main PUBLIC Alut::alut)
15+ # DOCUMENTATION_END }
Original file line number Diff line number Diff line change 1+ #include < stdlib.h>
2+ #include < AL/alut.h>
3+
4+ int
5+ main (int argc, char **argv)
6+ {
7+ ALuint helloBuffer, helloSource;
8+ alutInit (&argc, argv);
9+ helloBuffer = alutCreateBufferHelloWorld ();
10+ alGenSources (1 , &helloSource);
11+ alSourcei (helloSource, AL_BUFFER, helloBuffer);
12+ alSourcePlay (helloSource);
13+ alutSleep (1 );
14+ alutExit ();
15+ return EXIT_SUCCESS;
16+ }
You can’t perform that action at this time.
0 commit comments