config.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * config.h
  3. *
  4. * Copyright (c) 2013 Bilibili
  5. * Copyright (c) 2013 Zhang Rui <bbcallen@gmail.com>
  6. *
  7. * This file is part of ijkPlayer.
  8. *
  9. * ijkPlayer is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation; either
  12. * version 2.1 of the License, or (at your option) any later version.
  13. *
  14. * ijkPlayer is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with ijkPlayer; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. */
  23. #if defined(__aarch64__)
  24. # include "arm64/config.h"
  25. #elif defined(__x86_64__)
  26. # include "x86_64/config.h"
  27. #elif defined(__arm__)
  28. # if defined(__ARM_ARCH_7S__)
  29. # include "armv7s/config.h"
  30. # elif defined(__ARM_ARCH)
  31. # if __ARM_ARCH == 7
  32. # include "armv7/config.h"
  33. # else
  34. # error Unsupport ARM architecture
  35. # endif
  36. # else
  37. # error Unsupport ARM architecture
  38. # endif
  39. #elif defined(__i386__)
  40. # include "i386/config.h"
  41. #else
  42. # error Unsupport architecture
  43. #endif