Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSoC project: Enigma importer plugin #3435

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/plugins/enigma/enigma.qbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import qbs 1.0

TiledPlugin {
cpp.defines: base.concat(["ENIGMA_LIBRARY"])

files: [
"enigma_global.h",
"enigmaplugin.cpp",
"enigmaplugin.h",
"plugin.json",
]

qbsSearchPaths: "./"

Depends { name: "libEnigma" }
}
29 changes: 29 additions & 0 deletions src/plugins/enigma/enigma_global.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Enigma Tiled Plugin
* Copyright 2022, Kartik Shrivastava <[email protected]>
*
* This file is part of Tiled.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include <QtCore/qglobal.h>

#if defined(ENIGMA_LIBRARY)
# define ENIGMASHARED_EXPORT Q_DECL_EXPORT
#else
# define ENIGMASHARED_EXPORT Q_DECL_IMPORT
#endif
Loading