mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-20 17:41:13 +02:00
Move AppName to lib-utility...
... It makes more sense there, at an even lower level than lib-files. Avoid type wxString.
This commit is contained in:
@@ -18,6 +18,7 @@ used utilities that don't correspond to things in the standard.
|
||||
set( SOURCES
|
||||
MemoryX.cpp
|
||||
MemoryX.h
|
||||
ModuleConstants.cpp
|
||||
ModuleConstants.h
|
||||
)
|
||||
audacity_library( lib-utility "${SOURCES}" ""
|
||||
|
21
libraries/lib-utility/ModuleConstants.cpp
Normal file
21
libraries/lib-utility/ModuleConstants.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
/**********************************************************************
|
||||
|
||||
Audacity: A Digital Audio Editor
|
||||
|
||||
ModuleConstants.cpp
|
||||
|
||||
Paul Licameli
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#include "ModuleConstants.h"
|
||||
|
||||
// We want Audacity with a capital 'A'
|
||||
// DA: App name
|
||||
const std::wstring AppName =
|
||||
#ifndef EXPERIMENTAL_DA
|
||||
L"Audacity"
|
||||
#else
|
||||
L"DarkAudacity"
|
||||
#endif
|
||||
;
|
@@ -11,6 +11,8 @@
|
||||
#ifndef __AUDACITY_MODULE_CONSTANTS__
|
||||
#define __AUDACITY_MODULE_CONSTANTS__
|
||||
|
||||
#include <string>
|
||||
|
||||
#define ModuleDispatchName "ModuleDispatch"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
@@ -53,4 +55,7 @@ extern "C" { \
|
||||
DEFINE_VERSION_CHECK \
|
||||
extern "C" DLL_API int ModuleDispatch(ModuleDispatchTypes type){ return 1; }
|
||||
|
||||
//! This program's name
|
||||
UTILITY_API extern const std::wstring AppName;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user