mirror of
https://github.com/mupen64plus/mupen64plus-ui-python.git
synced 2025-04-02 10:51:53 -04:00
49 lines
1.6 KiB
Python
49 lines
1.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Author: Milan Nikolic <gen2brain@gmail.com>
|
|
#
|
|
# 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 3 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/>.
|
|
|
|
import os
|
|
import sys
|
|
|
|
if sys.platform.startswith("linux"):
|
|
LDD_CMD = "ldd %s | grep -q SDL2"
|
|
DLL_EXT = ".so"
|
|
DLL_FILTER = ".so.2"
|
|
DEFAULT_DYNLIB = "libmupen64plus.so.2"
|
|
SEARCH_DIRS = [
|
|
"/usr/local/lib/mupen64plus",
|
|
"/usr/lib/mupen64plus",
|
|
"/usr/games/lib64/mupen64plus",
|
|
"/usr/games/lib/mupen64plus",
|
|
"/usr/lib/x86_64-linux-gnu/mupen64plus",
|
|
"/usr/lib/i386-linux-gnu/mupen64plus",
|
|
"."
|
|
]
|
|
elif sys.platform == "darwin":
|
|
LDD_CMD = "otool -L %s | grep -q SDL2"
|
|
DLL_EXT = ".dylib"
|
|
DLL_FILTER = ".dylib"
|
|
DEFAULT_DYNLIB = "libmupen64plus.dylib"
|
|
SEARCH_DIRS = [
|
|
"/usr/local/lib/mupen64plus",
|
|
"/usr/lib/mupen64plus",
|
|
"."
|
|
]
|
|
elif sys.platform == "win32":
|
|
LDD_CMD = ""
|
|
DLL_EXT = ".dll"
|
|
DLL_FILTER = ".dll"
|
|
DEFAULT_DYNLIB = "mupen64plus.dll"
|
|
SEARCH_DIRS = ["."]
|