Skip to content

Commit

Permalink
Long comment at top of each CMakeLists.txt in src, libraries, modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Licameli committed Apr 17, 2024
1 parent 4621db9 commit e69faa7
Show file tree
Hide file tree
Showing 70 changed files with 206 additions and 28 deletions.
4 changes: 4 additions & 0 deletions libraries/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
A directory containing library targets
]]

# Include the libraries that we'll build

# The list of modules is ordered so that each library occurs after any others
Expand Down
2 changes: 1 addition & 1 deletion libraries/image-compiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
A small program that is run at build time of the application. For each built-in
theme it generates a header file from image files. The images are part of the
source code tree but not deployed with the program.
]]#
]]

if( NOT IMAGE_COMPILER_EXECUTABLE )
add_executable( image-compiler imageCompilerMain.cpp )
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-audio-devices/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Also abstract class Meter for communicating buffers of samples for display
purposes.
Does not contain an audio engine.
]]#
]]

set( SOURCES
AudioIOBase.cpp
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-audio-unit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[[
AudioUnit effect processing logic, minus user interface
]]#
]]

if (USE_AUDIO_UNITS)

Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-basic-ui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ There is a global pointer to an instance of Services, and the main program is
expected, at startup, to create a static instance of a subclass of Services and
set the pointer. If it does not, then calls to the non-member functions in
namespace BasicUI are no-ops.
]]#
]]

set( SOURCES
BasicUI.cpp
Expand Down
6 changes: 4 additions & 2 deletions libraries/lib-breakpad-configurer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# This module provides an interface to configure and start Breakpad handler
# in a platform independent way.
#[[
This library provides an interface to configure and start Breakpad handler
in a platform independent way.
]]

set(SOURCES
BreakpadConfigurer.h
Expand Down
6 changes: 4 additions & 2 deletions libraries/lib-crashpad-configurer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# This module provides an interface to configure and start Crashpad handler
# in a platform independent way.
#[[
This library provides an interface to configure and start Crashpad handler
in a platform independent way.
]]

set(SOURCES
CrashpadConfigurer.h
Expand Down
4 changes: 4 additions & 0 deletions libraries/lib-crypto/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
Unit tests for lib-crypto
]]

add_unit_test(
NAME
lib-crypto
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-exceptions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ enqueues the delayed action.
But this library does NOT define a top-level handler for the whole application,
to catch all otherwise uncaught exceptions. That is a responsibility of high
level code.
]]#
]]

set( SOURCES
AudacityException.cpp
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-fft/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A library for fast fourier transforms
Note -- this cannot be combined with lib-math, which depends on libsoxr, which
includes a different version of pffft.h
]]#
]]

set( SOURCES
FFT.cpp
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-files/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Also the definition of certain significant file paths, such as the directory
for temporary projects.
Also the global logger which can save to a file.
]]#
]]

set( SOURCES
AudacityLogger.cpp
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-graphics/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[[
A library responsible for custom rendering in Audacity
]]#
]]

set( SOURCES
FrameStatistics.cpp
Expand Down
4 changes: 4 additions & 0 deletions libraries/lib-import-export/riff-test-util/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
A command line testing program for tempo metadata in files
]]

add_executable(riff-test-util
RiffTestUtil.cpp
)
Expand Down
4 changes: 4 additions & 0 deletions libraries/lib-import-export/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
Unit tests for lib-import-export
]]

add_unit_test(
NAME
lib-import-export
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-math/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[[
A library of mathematical utilities and manipulation of samples
]]#
]]

addlib( libsoxr soxr SOXR YES YES "soxr >= 0.1.1" )

Expand Down
4 changes: 4 additions & 0 deletions libraries/lib-math/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
Unit tests for lib-math
]]

add_unit_test(
NAME
lib-math
Expand Down
1 change: 1 addition & 0 deletions libraries/lib-module-manager/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ effect, generator, and analyzer plug-ins.
Maintains persistent data in the configuration file for enablement of modules
and plug-ins, and preferred settings.
]]

set( SOURCES
AsyncPluginValidator.cpp
AsyncPluginValidator.h
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
Unit tests for lib-music-information-retrieval
]]

add_compile_definitions(
CMAKE_CURRENT_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}"
)
Expand Down
4 changes: 4 additions & 0 deletions libraries/lib-network-manager/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
Asynchronously send and receive requests and responses over internet
]]

set(TARGET lib-network-manager)
set( TARGET_ROOT ${CMAKE_CURRENT_SOURCE_DIR} )

Expand Down
3 changes: 3 additions & 0 deletions libraries/lib-numeric-formats/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later
#[[
Unit tests for lib-numeric-formats
]]

add_unit_test(
NAME
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-preferences/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PreferenceInitializer is a callback for the reinitialization of preferences.
FileConfig decorates wxFileConfig, with a member function to
alert the user of failure to initialize it (as when the file is read-only).
]]#
]]

set( SOURCES
BasicSettings.cpp
Expand Down
6 changes: 5 additions & 1 deletion libraries/lib-preferences/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
Unit tests for lib-preferences
]]

add_unit_test(
NAME
lib-preferences
Expand All @@ -8,4 +12,4 @@ add_unit_test(
LIBRARIES
lib-preferences
lib-wx-init
)
)
1 change: 1 addition & 0 deletions libraries/lib-project-history/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Management of undo and redo history of the project, stored as states, not
deltas. There is not yet persistency of undo history across sessions.
]]

set( SOURCES
ProjectHistory.cpp
ProjectHistory.h
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-project/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Also a global array of existing projects.
Also ProjectStatus, an abstraction of the status bar, just holding some strings
and formatter functions, and emitting events when changed.
]]#
]]

set( SOURCES
Project.cpp
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-registries/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Registry implements trees of objects identified by textual paths, and allows
scattered code to insert items or subtrees at specified paths. Registry
computes the merging of trees, and supports visitation. It is used notably
by the tree of menus, allowing insertion of menu items in decoupled code.
]]#
]]

set( SOURCES
AttachedVirtualFunction.h
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-screen-geometry/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[[
Classes relating to the mappings between x or y coordinates of the screen, and
times, or frequencies, or amplitudes.
]]#
]]

set( SOURCES
NumberScale.h
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-sentry-reporting/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[[
A library, that allows sending error reports to a Sentry server
using Exception and Message interfaces.
]]#
]]

set( TARGET lib-sentry-reporting )
set( TARGET_ROOT ${CMAKE_CURRENT_SOURCE_DIR} )
Expand Down
1 change: 1 addition & 0 deletions libraries/lib-snapping/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This library:
3. Provides a project extension that is responsible for snapping
]]

set(TARGET lib-snapping)
set(TARGET_ROOT ${CMAKE_CURRENT_SOURCE_DIR} )

Expand Down
3 changes: 3 additions & 0 deletions libraries/lib-snapping/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later
#[[
Unit tests for lib-snapping
]]

add_unit_test(
NAME
Expand Down
4 changes: 4 additions & 0 deletions libraries/lib-sqlite-helpers/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
Unit tests for lib-sqlite
]]

add_unit_test(
NAME
lib-sqlite-helpers
Expand Down
7 changes: 5 additions & 2 deletions libraries/lib-stretching-sequence/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#[[
A library providing a time-stretching-capable implementation of `PlayableSequence`.
A library providing a time-stretching-capable implementation of
`PlayableSequence`.
Please refer to this directory's readme for a presentation of the constraints inherent to such an implementation.
Please refer to this directory's readme for a presentation of the constraints
inherent to such an implementation.
]]

set( SOURCES
AudioSegment.cpp
AudioSegment.h
Expand Down
4 changes: 4 additions & 0 deletions libraries/lib-stretching-sequence/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
Unit tests for lib-stretching-sequence
]]

add_compile_definitions(CMAKE_SOURCE_DIR="${CMAKE_SOURCE_DIR}")

add_unit_test(
Expand Down
4 changes: 4 additions & 0 deletions libraries/lib-string-utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
String encoding and formatting utilities
]]

set(TARGET lib-string-utils)
set(TARGET_ROOT ${CMAKE_CURRENT_SOURCE_DIR} )

Expand Down
4 changes: 4 additions & 0 deletions libraries/lib-string-utils/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
Unit tests for lib-string-utils
]]

add_unit_test(
NAME
lib-string-utils
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-strings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ even if the global choice of locale changes during its lifetime. It does not
implicitly interconvert with wxString.
This library depends only on the wxBase subset of wxWidgets.
]]#
]]

set( SOURCES
Base64.h
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-theme/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[[
A library to hold a registry of image and color identifiers, and multiple themes
associating data with those identifiers.
]]#
]]

set( SOURCES
AColor.cpp
Expand Down
4 changes: 4 additions & 0 deletions libraries/lib-time-and-pitch/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
Unit tests for lib-time-and-pitch
]]

add_compile_definitions(CMAKE_SOURCE_DIR="${CMAKE_SOURCE_DIR}")

add_unit_test(
Expand Down
1 change: 1 addition & 0 deletions libraries/lib-url-schemes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#[[
Library, responsible for handling custom URL scemas.
]]

set( SOURCES
URLSchemesRegistry.cpp
URLSchemesRegistry.h
Expand Down
3 changes: 1 addition & 2 deletions libraries/lib-utility/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ did not yet provide std::make_unique. That explains the name.
Audacity now uses C++17, and yet, need arose for other anticipations of future
standards. It also provides other pervasively used utilities that don't
correspond to things in the standard.
]]#
]]

set( SOURCES
AppEvents.cpp
Expand Down
3 changes: 3 additions & 0 deletions libraries/lib-utility/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later
#[[
Unit tests for lib-utility
]]

add_unit_test(
NAME
Expand Down
4 changes: 4 additions & 0 deletions libraries/lib-uuid/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[[
Generation of UUIDs
]]

set( TARGET lib-uuid )
set( TARGET_ROOT ${CMAKE_CURRENT_SOURCE_DIR} )

Expand Down
1 change: 1 addition & 0 deletions libraries/lib-viewport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Viewport defines a callback facade for horizontal and vertical scrollbars, and
provides methods to scroll and zoom the view of tracks.
]]

set( SOURCES
Viewport.cpp
Viewport.h
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-vst/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[[
VST 2 effect plugin discovery and processing logic, without user interface
]]#
]]

set( SOURCES
VSTEffectBase.cpp
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-wx-init/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[[
Startup time injections of wxWidgets based implementations of services behind
toolkit-neutral facades
]]#
]]

set( SOURCES
AccessibleLinksFormatter.cpp
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-xml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Utilities to serialize and deserialize trees of objects in XML form, and a
class template XMLMethodRegistry to generate registries for serializable
objects attached to a host object. The template is parametrized by the host
type.
]]#
]]

set( SOURCES
XMLAttributeValueView.cpp
Expand Down
Loading

0 comments on commit e69faa7

Please sign in to comment.