libyajl (android)

Discuss client development (or even MPD development if you feel so inclined), ask questions about the client libs, MPD feature requests from client developers, etc...
Post Reply
DmitryUE
Posts: 1
Joined: January 15th, 2017, 5:11 pm

libyajl (android)

Post by DmitryUE » January 15th, 2017, 5:32 pm

Want to activate soundcloud plugin when compile mpd for android. This plug-in depends on yajl library. How to do it correctly?

I tried to edit a few files:

MPD/android/build.py
thirdparty_libs = [
...
curl,
+ yajl,
boost,
]
MPD/python/build/libs.py
+ from build.yajl import YajlProject
...
+ yajl = YajlProject(
+ 'http://pkgs.fedoraproject.org/repo/pkgs ... 1.0.tar.gz',
+ '6887e0ed7479d2549761a4d284d3ecb0',
+ 'lib/libyajl.a',
+)
MPD/python/build/yajl.py
import os.path, subprocess

from build.project import Project

class YajlProject(Project):
def __init__(self, url, md5, installed,
**kwargs):
Project.__init__(self, url, md5, installed, **kwargs)

def build(self, toolchain):
src = self.unpack(toolchain)
???

Post Reply