1
0
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:
Paul Licameli
2021-07-30 07:16:04 -04:00
parent 44c4219d7c
commit 347cb7c294
6 changed files with 31 additions and 17 deletions

View File

@@ -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}" ""

View 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
;

View File

@@ -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