Move API header into include directory.

It's a more standard location. Also add a note in the API docs about
masterlist versioning.
This commit is contained in:
Oliver Hamlet
2015-10-26 07:50:34 +00:00
parent ca7ffba08f
commit bee7e788a2
7 changed files with 11 additions and 7 deletions
+2 -1
View File
@@ -166,7 +166,7 @@ set (LOOT_API_SRC ${LOOT_SRC}
"${CMAKE_SOURCE_DIR}/src/api/api.cpp")
set (LOOT_API_HEADERS ${LOOT_HEADERS}
"${CMAKE_SOURCE_DIR}/src/api/api.h")
"${CMAKE_SOURCE_DIR}/include/loot/api.h")
set (LOOT_VALIDATOR_SRC ${LOOT_SRC}
"${CMAKE_SOURCE_DIR}/src/validator/main.cpp")
@@ -208,6 +208,7 @@ source_group("Header Files" FILES ${LOOT_HEADERS} ${LOOT_GUI_HEADERS} ${LOOT_API
# Include source and library directories.
include_directories ("${CMAKE_SOURCE_DIR}/src"
"${LIBLOADORDER_ROOT}/src"
"${CMAKE_SOURCE_DIR}/include"
"${LIBGIT2_ROOT}/include"
${CEF_ROOT}
${LIBESPM_ROOT}
+1 -1
View File
@@ -62,7 +62,7 @@ If you're adding a new translation, LOOT's source code must be updated to recogn
* In [language.h](src/backend/helpers/language.h), add a static constant for the language to the `Language` class.
* In [language.cpp](src/backend/helpers/language.cpp), define the value for the constant you added, and update `Language::Language(const std::string& locale)`, `Language::Construct(const unsigned int code)` and `Language::Codes({...})` to include lines for your language.
* Add constants for the language in [api.h](src/api/api.h) and [api.cpp](src/api/api.cpp).
* Add constants for the language in [api.h](include/loot/api.h) and [api.cpp](src/api/api.cpp).
* In [archive.js](scripts/archive.js), add the language folder to the list on line 83.
* In [installer.iss](scripts/installer.iss), add an entry for your language's translation file to the `[Files]` section.
* In [LOOT Metadata Syntax.html](docs/LOOT%20Metadata%20Syntax.html), add a row for your language to the Language Codes table.
+1 -1
View File
@@ -765,7 +765,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.
INPUT = ../src/api/api.h
INPUT = ../include/loot/api.h
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
+4 -1
View File
@@ -507,7 +507,10 @@ extern "C"
* The URL of the remote from which to fetch updates. This can also be
* a relative or absolute path to a local repository.
* @param remoteBranch
* The branch of the remote from which to apply updates.
* The branch of the remote from which to apply updates. LOOT's
* official masterlists are versioned using separate branches for each
* new version of the masterlist syntax, so if you're using them,
* check their repositories to see which is the latest release branch.
* @param updated
* `true` if the masterlist was updated. `false` if no update was
* necessary, ie. it was already up-to-date. If `true`, the masterlist
+1 -1
View File
@@ -159,7 +159,7 @@ function createApiArchive(dest_path) {
// API header file.
fs.mkdirsSync(path.join(temp_path, 'include', 'loot'));
fs.copySync(
path.join(root_path, 'src', 'api', 'api.h'),
path.join(root_path, 'include', 'loot', 'api.h'),
path.join(temp_path, 'include', 'loot', 'api.h')
);
+1 -1
View File
@@ -22,7 +22,7 @@
<http://www.gnu.org/licenses/>.
*/
#include "api.h"
#include "loot/api.h"
#include "../backend/game/game.h"
#include "../backend/globals.h"
#include "../backend/error.h"
+1 -1
View File
@@ -25,7 +25,7 @@ along with LOOT. If not, see
#ifndef LOOT_TEST_API
#define LOOT_TEST_API
#include "api/api.h"
#include "../include/loot/api.h"
#include "tests/fixtures.h"
#include <boost/algorithm/string/predicate.hpp>