Skip to content

Commit

Permalink
Refactor: Renamed libdeng2 to libcore (deng_core)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 2, 2014
1 parent c871117 commit 305f4eb
Show file tree
Hide file tree
Showing 602 changed files with 476 additions and 516 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -6,13 +6,13 @@ For [compilation instructions](http://dengine.net/dew/index.php?title=Compilatio

## Libraries

**libdeng2** is the core of Doomsday 2. It is a C++ class framework containing functionality such as the file system, plugin loading, Doomsday Script, network communications, and generic data structures. Almost everything relies or will rely on this core library.
**libcore** is the core of Doomsday 2. It is a C++ class framework containing functionality such as the file system, plugin loading, Doomsday Script, network communications, and generic data structures. Almost everything relies or will rely on this core library.

**liblegacy** is a collection of C language routines extracted from the old Doomsday 1 code base. Its purpose is to (eventually) act as a C wrapper for libdeng2. (Game plugins are mostly in C.)
**liblegacy** is a collection of C language routines extracted from the old Doomsday 1 code base. Its purpose is to (eventually) act as a C wrapper for libcore. (Game plugins are mostly in C.)

**libgui** builds on libdeng2 to add low-level GUI capabilities such as OpenGL graphics, fonts, images, and input devices.
**libgui** builds on libcore to add low-level GUI capabilities such as OpenGL graphics, fonts, images, and input devices.

**libappfw** contains the Doomsday UI framework: widgets, generic dialogs, abstract data models. libappfw is built on libgui and libdeng2.
**libappfw** contains the Doomsday UI framework: widgets, generic dialogs, abstract data models. libappfw is built on libgui and libcore.

**libshell** has functionality related to connecting to and controlling Doomsday servers remotely.

Expand Down
2 changes: 1 addition & 1 deletion distrib/autobuild.py
Expand Up @@ -375,7 +375,7 @@ def generate_apidoc():
system_command('wc -l doxyissues-qch.txt')

print >> sys.stderr, "\nPublic API 2.0 docs..."
os.chdir(os.path.join(builder.config.DISTRIB_DIR, '../doomsday/libdeng2'))
os.chdir(os.path.join(builder.config.DISTRIB_DIR, '../doomsday/libcore'))
system_command('doxygen api2.doxy >/dev/null 2>../doxyissues-api2.txt')
system_command('wc -l ../doxyissues-api2.txt')

Expand Down
2 changes: 1 addition & 1 deletion distrib/platform_release.py
Expand Up @@ -379,7 +379,7 @@ def clean_products():
# Build dsFMOD separately.
os.chdir('dsfmod')
logSuffix = "%s-%s.txt" % (sys.platform, platform.architecture()[0])
if os.system('LD_LIBRARY_PATH=`pwd`/../builddir/libdeng2:`pwd`/../builddir/libdeng dpkg-buildpackage -b > fmod-out-%s 2> fmod-err-%s' % (logSuffix, logSuffix)):
if os.system('LD_LIBRARY_PATH=`pwd`/../builddir/libcore:`pwd`/../builddir/liblegacy dpkg-buildpackage -b > fmod-out-%s 2> fmod-err-%s' % (logSuffix, logSuffix)):
raise Exception("Failure to build dsFMOD from source.")
shutil.copy(glob.glob('../doomsday-fmod*.deb')[0], OUTPUT_DIR)
shutil.copy(glob.glob('../doomsday-fmod*.changes')[0], OUTPUT_DIR)
Expand Down
7 changes: 4 additions & 3 deletions distrib/win32/setup.iss.template
Expand Up @@ -52,6 +52,7 @@ Name: "{app}\doc"
; Obsolete files which should be removed if present when upgrading.
[InstallDelete]
Type: files; Name: "{app}\bin\deng1.dll"
Type: files; Name: "{app}\bin\deng2.dll"
Type: files; Name: "{app}\bin\libcurl.dll"
Type: files; Name: "{app}\bin\libpng15.dll"
Type: files; Name: "{app}\bin\SDL_net.dll"
Expand Down Expand Up @@ -92,11 +93,11 @@ Source: "bin\wadtool.exe"; DestDir: "{app}\bin"; Flags: ignoreversion; Component

; Libraries
Source: "..\win32\vcredist_x86.exe"; DestDir: "{app}\bin"; Flags: ignoreversion deleteafterinstall; Components: Engine
Source: "bin\deng_appfw.dll"; DestDir: "{app}\bin"; Flags: ignoreversion; Components: Engine
Source: "bin\deng_core.dll"; DestDir: "{app}\bin"; Flags: ignoreversion; Components: Engine
Source: "bin\deng_gui.dll"; DestDir: "{app}\bin"; Flags: ignoreversion; Components: Engine
Source: "bin\deng_legacy.dll"; DestDir: "{app}\bin"; Flags: ignoreversion; Components: Engine
Source: "bin\deng2.dll"; DestDir: "{app}\bin"; Flags: ignoreversion; Components: Engine
Source: "bin\deng_shell.dll"; DestDir: "{app}\bin"; Flags: ignoreversion; Components: Engine
Source: "bin\deng_gui.dll"; DestDir: "{app}\bin"; Flags: ignoreversion; Components: Engine
Source: "bin\deng_appfw.dll"; DestDir: "{app}\bin"; Flags: ignoreversion; Components: Engine
Source: "bin\QtCore4.dll"; DestDir: "{app}\bin"; Flags: ignoreversion; Components: Engine
Source: "bin\QtGui4.dll"; DestDir: "{app}\bin"; Flags: ignoreversion; Components: Engine
Source: "bin\QtNetwork4.dll"; DestDir: "{app}\bin"; Flags: ignoreversion; Components: Engine
Expand Down
6 changes: 3 additions & 3 deletions doomsday/api/api_uri.h
@@ -1,8 +1,8 @@
/** @file api_uri.h Public API for Universal Resource Identifiers.
/** @file api_uri.h Public API for Universal Resource Identifiers.
* @ingroup base
*
* @todo de::Uri will eventually be moved to libdeng2, at which point this API
* is deprecated and the libdeng2 c_wrapper will provide C API functions
* @todo de::Uri will eventually be moved to libcore, at which point this API
* is deprecated and the libcore c_wrapper will provide C API functions
* equivalent to these.
*
* @author Copyright &copy; 2010-2013 Daniel Swanson <danij@dengine.net>
Expand Down
2 changes: 1 addition & 1 deletion doomsday/build/scripts/codex.py
Expand Up @@ -229,7 +229,7 @@ def fetch_commits():
['Test*', 'GLSandbox'],
['Docs', 'Documentation', 'Codex', 'Readme', 'Doxygen', 'Amethyst'],
['Homepage', 'Add-on Repository', 'Build Repository', 'CSS', 'RSS', 'DEW', 'Forums'],
['libdeng2', 'App', 'Config', 'Log', 'LogBuffer', 'Widgets', 'Garbage', 'Garbages'],
['libdeng2', 'libcore', 'App', 'Config', 'Log', 'LogBuffer', 'Widgets', 'Garbage', 'Garbages'],
['libgui', 'DisplayMode', 'GL', 'OpenGL', 'GL*', 'Atlas*', 'Image', '*Bank', 'Font'],
['libdeng', 'libdeng1', 'liblegacy', 'Str'],
['libshell', 'Shell', 'AbstractLineEditor', 'Link'],
Expand Down
2 changes: 1 addition & 1 deletion doomsday/build/win32/copy_to_products.py
Expand Up @@ -32,7 +32,7 @@ def copy_if_newer(src, dest):
copy_if_newer(os.path.join(solDir, 'libhexen.pk3'), os.path.join(dest, '..', 'data', 'jhexen', 'libhexen.pk3'))
copy_if_newer(os.path.join(solDir, 'libdoom64.pk3'), os.path.join(dest, '..', 'data', 'jdoom64', 'libdoom64.pk3'))

targets = ['libdeng2', 'liblegacy', 'libshell', 'libgui', 'libappfw',
targets = ['libcore', 'liblegacy', 'libshell', 'libgui', 'libappfw',
'client', 'server',
'plugins\*', 'tools\*', 'tools\shell\*', 'tests\*']

Expand Down
2 changes: 1 addition & 1 deletion doomsday/build/win32/qmake_msvc.py
Expand Up @@ -53,7 +53,7 @@ def fileRegOff(fn, pattern, startAtPos=0):
return found.start()


for proj in ['libdeng2\deng2.vcxproj', 'tools\shell\shell-gui\Doomsday-Shell.vcxproj']:
for proj in ['libcore\core.vcxproj', 'tools\shell\shell-gui\Doomsday-Shell.vcxproj']:
fileRegex(proj,
r'=\\&quot;([A-Za-z0-9_\-\. ]+)\\&quot;',
r'=&quot;\1&quot;')
Expand Down
4 changes: 2 additions & 2 deletions doomsday/client/client.pro
Expand Up @@ -32,7 +32,7 @@ include(../dep_lzss.pri)
win32 {
include(../dep_directx.pri)
}
include(../dep_deng2.pri)
include(../dep_core.pri)
include(../dep_legacy.pri)
include(../dep_shell.pri)
include(../dep_gui.pri)
Expand Down Expand Up @@ -877,7 +877,7 @@ macx {
}

# Fix the dynamic linker paths so they point to ../Frameworks/ inside the bundle.
fixInstallName(Doomsday.app/Contents/MacOS/Doomsday, libdeng2.2.dylib, ..)
fixInstallName(Doomsday.app/Contents/MacOS/Doomsday, libdeng_core.2.dylib, ..)
fixInstallName(Doomsday.app/Contents/MacOS/Doomsday, libdeng_legacy.1.dylib, ..)
linkBinaryToBundledLibdengShell(Doomsday.app/Contents/MacOS/Doomsday)

Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/def_data.h
Expand Up @@ -27,7 +27,7 @@
#define DENG_DEFINITION_FILE_H

#include <vector>
#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/Vector>

#include "def_share.h"
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/network/masterserver.h
Expand Up @@ -26,7 +26,7 @@

#include "dd_share.h"

#include <de/libdeng2.h>
#include <de/libcore.h>
#include <QObject>
#include <QNetworkReply>
#include <QByteArray>
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/network/protocol.h
Expand Up @@ -23,7 +23,7 @@

/**
* Server protocol version number.
* @deprecated Will be replaced with the libdeng2 serialization protocol version.
* @deprecated Will be replaced with the libcore serialization protocol version.
*/
#define SV_VERSION 23

Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/render/biasdigest.h
Expand Up @@ -20,7 +20,7 @@
#ifndef DENG_RENDER_SHADOWBIAS_DIGEST_H
#define DENG_RENDER_SHADOWBIAS_DIGEST_H

#include <de/libdeng2.h>
#include <de/libcore.h>

/**
* Change digest for updating trackers in the Shadow Bias lighting model.
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/render/consoleeffect.h
Expand Up @@ -19,7 +19,7 @@
#ifndef DENG_CLIENT_CONSOLEEFFECT_H
#define DENG_CLIENT_CONSOLEEFFECT_H

#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/Rectangle>
#include <de/GLShaderBank>

Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/render/ilightsource.h
Expand Up @@ -19,7 +19,7 @@
#ifndef DENG_CLIENT_ILIGHTSOURCE_H
#define DENG_CLIENT_ILIGHTSOURCE_H

#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/Vector>

/**
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/render/lightgrid.h
Expand Up @@ -20,7 +20,7 @@
#ifndef DENG_CLIENT_LIGHTGRID_H
#define DENG_CLIENT_LIGHTGRID_H

#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/Error>
#include <de/Vector>
#include "render/ilightsource.h"
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/render/sky.h
Expand Up @@ -22,7 +22,7 @@
#define DENG_CLIENT_RENDER_SKY_H

#include "Material"
#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/Error>
#include <de/Observers>
#include <de/Vector>
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/render/surfacedecorator.h
Expand Up @@ -20,7 +20,7 @@
#ifndef DENG_CLIENT_RENDER_SURFACEDECORATOR_H
#define DENG_CLIENT_RENDER_SURFACEDECORATOR_H

#include <de/libdeng2.h>
#include <de/libcore.h>

class Surface;

Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/render/trianglestripbuilder.h
Expand Up @@ -22,7 +22,7 @@

#include <QVarLengthArray> /// @todo Remove me

#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/Vector>

namespace de {
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/resource/colorpalette.h
Expand Up @@ -20,7 +20,7 @@
#ifndef DENG_RESOURCE_COLORPALETTE_H
#define DENG_RESOURCE_COLORPALETTE_H

#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/Error>
#include <de/Id>
#include <de/Observers>
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/ui/clientwindow.h
Expand Up @@ -52,7 +52,7 @@ class BusyWidget;
class AlertDialog;

/**
* Top-level window that contains a libdeng2 UI widgets. @ingroup gui
* Top-level window that contains UI widgets. @ingroup gui
*/
class ClientWindow : public de::BaseWindow,
DENG2_OBSERVES(de::Canvas, GLInit),
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/ui/dd_input.h
Expand Up @@ -211,7 +211,7 @@ byte DD_ModKey(byte key);
bool DD_ConvertEvent(ddevent_t const *ddEvent, event_t *ev);

/**
* Converts a libdeng2 Event into an old-fashioned ddevent_t.
* Converts a libcore Event into an old-fashioned ddevent_t.
*
* @param event Event instance.
* @param ddEvent ddevent_t instance.
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/ui/widgetactions.h
Expand Up @@ -19,7 +19,7 @@
#ifndef CLIENT_WIDGETACTIONS_H
#define CLIENT_WIDGETACTIONS_H

#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/Action>
#include <de/Event>
#include <de/GuiWidget>
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/updater.h
Expand Up @@ -33,7 +33,7 @@

#include "dd_types.h"

#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/App>
#include <QObject>
#include <QNetworkReply>
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/world/entitydatabase.h
Expand Up @@ -20,7 +20,7 @@
#ifndef DENG_WORLD_ENTITYDATABASE_H
#define DENG_WORLD_ENTITYDATABASE_H

#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/Error>

#include "api_mapedit.h" // valuetype_t
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/world/linesighttest.h
Expand Up @@ -22,7 +22,7 @@
#define DENG_WORLD_LINE_SIGHT_TEST_H

#include "MapElement"
#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/Vector>

namespace de {
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/src/clientapp.cpp
Expand Up @@ -320,7 +320,7 @@ void ClientApp::initialize()

d->svLink = new ServerLink;

// Config needs DisplayMode, so let's initialize it before the libdeng2
// Config needs DisplayMode, so let's initialize it before the libcore
// subsystems and Config.
DisplayMode_Init();

Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/src/filesys/sys_direc.cpp
@@ -1,7 +1,7 @@
/** @file sys_direc.cpp Native file system directories.
* @ingroup system
*
* @todo Rewrite using libdeng2's NativePath (and Qt).
* @todo Rewrite using libcore's NativePath (and Qt).
*
* @authors Copyright © 2003-2013 Jaakko Keränen <jaakko.keranen@iki.fi>
* @authors Copyright © 2007-2013 Daniel Swanson <danij@dengine.net>
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/src/gl/sys_opengl.cpp
Expand Up @@ -26,7 +26,7 @@

#include "gl/sys_opengl.h"

#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/GLInfo>
#include <de/GLState>
#include <QSet>
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/src/library.cpp
Expand Up @@ -52,7 +52,7 @@ struct library_s { // typedef Library
Str* path; ///< de::FS path of the library (e.g., "/bin/doom.dll").
de::LibraryFile* file; ///< File where the plugin has been loaded from.
bool isGamePlugin; ///< Is this a game plugin? (only one should be in use at a time)
std::string typeId; ///< deng2 library type ID e.g., "deng-plugin/game".
std::string typeId; ///< Library type ID e.g., "deng-plugin/game".

library_s() : path(0), file(0), isGamePlugin(false) {}
};
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/src/render/cameralensfx.cpp
Expand Up @@ -50,7 +50,7 @@

#include "ui/clientwindow.h"

#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/Rectangle>
#include <de/Drawable>
#include <de/GLTarget>
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/src/render/rend_main.cpp
Expand Up @@ -27,7 +27,7 @@
#include <QBitArray>

#include <de/vector1.h>
#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/GLState>

#include "de_base.h"
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/src/resource/patch.cpp
Expand Up @@ -20,7 +20,7 @@

#include <QList>
#include <QRect>
#include <de/libdeng2.h>
#include <de/libcore.h>
#include <de/Log>

#include "resource/patch.h"
Expand Down
36 changes: 0 additions & 36 deletions doomsday/client/src/updater/updatersettings.cpp
Expand Up @@ -46,42 +46,6 @@ using namespace de;

#define SYMBOL_DEFAULT_DOWNLOAD "${DEFAULT}"

#if 0
void UpdaterSettings::initialize()
{
Config &config = App::config();

if(!config.names().has(SUBREC_NAME))
{
/**
* @todo These defaults can be moved to Config.de when libdeng2 has
* knowledge of the release type.
*/

// Looks like we don't have existing values stored. Let's set up a
// Record with the defaults.
Record *s = new Record;

s->addNumber(VAR_FREQUENCY, Weekly);
s->addNumber(VAR_CHANNEL, QString(DOOMSDAY_RELEASE_TYPE) == "Stable"? Stable : Unstable);
s->addTime(VAR_LAST_CHECKED, Time::invalidTime());

bool checkByDefault = false;
#if defined(UNIX) && !defined(MACOSX)
// On Unix platforms don't do automatic checks by default.
checkByDefault = true;
#endif
s->addBoolean(VAR_ONLY_MANUAL, checkByDefault);

s->addBoolean(VAR_DELETE, true);
s->addText(VAR_DELETE_PATH, "");
s->addText(VAR_DOWNLOAD_PATH, SYMBOL_DEFAULT_DOWNLOAD);

config.names().add(SUBREC_NAME, s);
}
}
#endif

UpdaterSettings::UpdaterSettings()
{}

Expand Down
8 changes: 4 additions & 4 deletions doomsday/config.pri
Expand Up @@ -28,9 +28,9 @@
# - deng_notools Do not build and deploy the tools
# - deng_openal Build the OpenAL sound driver
# - deng_qtautoselect (Mac) Select OS X SDK based on Qt version
# - deng_qtgui Use the QtGui module in dep_deng2.pri
# - deng_qtopengl Use the QtOpenGL module in dep_deng2.pri
# - deng_qtwidgets Use the QtWidgets module in dep_deng2.pri
# - deng_qtgui Use the QtGui module in dep_core.pri
# - deng_qtopengl Use the QtOpenGL module in dep_core.pri
# - deng_qtwidgets Use the QtWidgets module in dep_core.pri
# - deng_nopackres Do not package the Doomsday resources
# - deng_rangecheck Parameter range checking/value assertions
# - deng_snowberry (Unix) Include Snowberry in installation
Expand All @@ -50,7 +50,7 @@ DENG_INCLUDE_DIR = $$PWD/client/include
DENG_UNIX_INCLUDE_DIR = $$DENG_INCLUDE_DIR/unix
DENG_MAC_INCLUDE_DIR = $$DENG_INCLUDE_DIR/macx
DENG_WIN_INCLUDE_DIR = $$DENG_INCLUDE_DIR/windows
DENG_MODULES_DIR = $$PWD/libdeng2/modules
DENG_MODULES_DIR = $$PWD/libcore/modules

# Macros ---------------------------------------------------------------------

Expand Down

0 comments on commit 305f4eb

Please sign in to comment.